From: "David A. Black" Date: 2005-08-07T12:36:23+09:00 Subject: Re: Regexp Help for \W less [.-_] Hi -- On Sun, 7 Aug 2005, Ara.T.Howard wrote: > On Sun, 7 Aug 2005, Trans wrote: > >> Regexp help. How do I write "all non-alphanumeric characets except . >> (period) - (dash) and _ (underscore)" > > re = %r/[^A-Za-z0-9._-]/ > > or depending on usage, you may want > > re = %r/^\s*[^A-Za-z0-9._-]\s*$/ > > or something close You get all that A-Za-z0-9_ stuff for the price of admission with \w :-) David -- David A. Black dblack@wobblini.net