[Chicago-talk] REGEX question II

Jim Thomason jthomasoniii at yahoo.com
Sat Apr 17 08:00:53 CDT 2004

Piece of cake. Put it in a character set.


(being careful to escape that / if you're inside a
search-n-replace that uses / as its delimiters).

In short, brackets denote character sets and match any
character contained within them.

[a] matches a.
[ab] matches a or b.
[a\W] matches any character that is either a or a
[a-z] matches a through z.

perldoc perlre for tons more info. I also strongly
recommend "Mastering Regular Expressions" from


--- Richard Solberg <flateyjarbok at yahoo.com> wrote:
> I read that
> \w+  will match any alpha numberics plus the "_".
> Is there any way to get it or some other notation to
> match all of \w+ plus \s+ plus "/" plus "." , in any
> order or combination?

Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th

More information about the Chicago-talk mailing list