Ok, right. The previous construction was incorrect. I think using the experimental conditional test would work here since now the (?!) does not connect via backtracking to the (?=).
/(?((?:$RegexGoesHere))(?!)|(?=))/In reply to Re: negative regex without !~
by diotalevi
in thread negative regex without !~
by mbr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |