Thread: RegEx
View Single Post
Old 07-29-2009, 02:46 AM   #2 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

This regex could help
Code:
[^A-Za-z0-9]+
it matches anything that is not alphanumeric.
or also the W that matches all alphanumeric, but the W treats the underscore like an alphanumeric. so this
Code:
(/W)+
is the same as
Code:
[^A-Za-z0-9_]+
P.S. I haven't test it.
tony is offline  
Reply With Quote