[thelist] any non-alphanumeric character except space
Paul Cowan
evolt at funkwit.com
Thu Jul 15 19:14:37 CDT 2004
On 15/07/2004 5:20 PM -0400 PeterV wrote:
> I am trying to do a regex that matches any non-alphanumeric character
> except space. Any suggestions? This one [^[:alnum:]+] matches any
> non-alphanumeric character including spaces. So it's almost there...
This regular expression (note the space):
[^[:alnum:] ]
will match any single character, excepting an alpha-numeric or a space.
Cheers,
Paul.
More information about the thelist
mailing list