Huh. I wouldn't have thought to use (??{}) for that and still won't. It invokes the regex compiler which isn't necessary for the code2assert I posted. This works identically except its slower.
/(??{ # delayed regex $condition ? '' # Nothing needed - this succeeds by default : '(?!)' # Failed! })/
In reply to Re: Re^8: Replace zero-width grouping?
by diotalevi
in thread Replace zero-width grouping?
by tinypig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |