Skip to main content
Question

"SyntaxError: invalid regular expression flags" when building a RegExp with 'd' flag


“SyntaxError: invalid regular expression flags” when building a RegExp with ‘d’ flag. Other flags work fine, I use flags “/gid” together. I need to get indices of all matched substrings.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings