in reply to Re^2: Regular Expression Constructs ?<= and ?=
in thread Regular Expression Constructs ?<= and ?=

Or if you *do* want your code's evaluation to affect the regex's match, use the conditional expression (?(...)...|...).

(?(?{ YOUR CODE HERE }) TRUE | FALSE )

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊