|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^2: Conditional regexby Anonymous Monk |
| on Feb 17, 2013 at 18:49 UTC ( #1019189=note: print w/ replies, xml ) | Need Help?? |
|
perlre says (?(condition)yes-pattern|no-pattern) (?(condition)yes-pattern) Conditional expression. Matches yes-pattern if condition yields a true value, matches no-pattern otherwise. A missing pattern always matches.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||