Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Regex code assertion should be able to failby halley (Prior) |
on Sep 04, 2007 at 15:21 UTC ( [id://636959]=note: print w/replies, xml ) | Need Help?? |
Some time ago I figured out how to combine the succeed/fail operator and the execute-code operator. This includes the use of (?!) to force a failure. I think this is what you need, if I understood your question. It was not at all obvious to me, so I wrote it up here before.
combining (?(condition)yes|no) and (?{code}) Does this help? --
In Section
Meditations
|
|