Re: regex of the month (decade?)

[email protected] (Keith Ivey) Mon, 07 Jan 2008 18:26:22 -0500
Newsgroups perl.fwp
Message-ID <[email protected]>
Dan Collins wrote:
> Last I checked, '.' matches \s. Oh, and '/' uis a pretty important
> character, and should really be escaped.

No, '.' inside [] matches '.'.  The [.\s] is looking for a period or 
whitespace.

And there's no reason to escape '/' if you're not using slashes for the 
regex delimiters.  If you want to escape it because you make a habit to 
do so in regexes, that's fine, but it's not an error not to.

-- 
Keith C. Ivey <[email protected]>
Washington, DC