Keep It Simple, Stupid | |
PerlMonks |
Re^3: regex to remove all non a-z and spacesby mrborisguy (Hermit) |
on May 16, 2005 at 02:53 UTC ( [id://457342]=note: print w/replies, xml ) | Need Help?? |
usually, ^ does mean at the beginning, but the [ and ] make a character class, and a ^ at the beginning of a character class means "not any of these". Update: Oddly enough, it doesn't explicitly say that in perlre. however, it does say You can negate the [::] character classes by prefixing the class name with a '^'. This is a Perl extension.
In Section
Seekers of Perl Wisdom
|
|