Or if you *do* want your code's evaluation to affect the regex's match, use the conditional expression (?(...)...|...).
(?(?{ YOUR CODE HERE }) TRUE | FALSE )⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re^3: Regular Expression Constructs ?<= and ?=
by diotalevi
in thread Regular Expression Constructs ?<= and ?=
by eibwen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |