Skip to main content
Question

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

  • March 30, 2023
  • 0 replies
  • 476 views

“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.

This topic has been closed for replies.