|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Alternation in Effective Perl Programming Exampleby chromatic (Archbishop) |
| on Dec 07, 2000 at 04:03 UTC ( [id://45445]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
It's a little more than that. Should it be (?:\\\W|.) instead?
If so, as written, it would be interpreted as non-capturing parenthesis, matching either a backslash and a nonword character or a single character. Otherwise, it's (an optional colon followed by a backslash and a non-word character) or (a single character).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||