in reply to Conditional continued matching with regexes
Perhaps you meant to look at (??{...}). That takes a bit of perl code, returns a string or qr// object and uses that as the next regexp fragment. (?{...}) just runs some perl code and only (?(...)...|...) uses its return value for anything.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|