The JavaScript exception "invalid regexp group" occurs when the sequence (? does not start a valid group syntax. Recognized group syntaxes that start with (? include:
-
(?:for non-capturing groups -
(?=for positive lookahead -
(?!for negative lookahead -
(?<=for positive lookbehind -
(?<!for negative lookbehind -
(?<for named capturing groups -
(?-i:,(?i:,(?m:,(?ims-:, etc. for modifiers
(? followed by any other character would cause this error.