"?" is taken to be the start of a ?...? operator, but there's no other "?" before the end of the file to end the operator, thus the error.
You seem to think ?( EXPR ){/w,6}; is valid Perl, but nothing about it is even close to Perl.
In reply to Re: Regex - remove characters (pattern not terminated)
by ikegami
in thread Regex - remove characters (pattern not terminated)
by twaddlac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |