Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- '+' messing up regular expression
- Chris Johnson
September 15, 2005, 8:35 pm
rate this thread
Re: '+' messing up regular expression
Hyphen (-) is not meta in a regular expression, while plus (+) is meta.
Hyphen (-) is meta in a character class, while plus (+) is not meta.
We must peel our "language onion" to know what funny characters are funny.
We have a language inside of a language inside of a language. The
teeny-tiny character class language is inside of the larger regular
expression language which is inside of big ol' Perl.
So we must identify which language we are currently in before we
know what metacharacters apply.
RE: not meta
Perl: bitwise exclusive or
RE: beginning of string
CC: negates the class
Tad McClellan SGML consulting
email@example.com Perl programming
Fort Worth, Texas
- » FAQ 8.37 How do I find out if I'm running interactively or not?
- — Previous thread in » PERL Discussions