test Posted January 29, 2007 Share Posted January 29, 2007 I'm just learning php so go easy on me here. Is there a way to specify all special characters for a pattern? Like for all lowercase alpha (a-z), but is there something like that that will match ~!@#$%^&*()_+{}|":><? characters all at once like ~-?. Link to comment https://forums.phpfreaks.com/topic/36139-patterns/ Share on other sites More sharing options...
effigy Posted January 29, 2007 Share Posted January 29, 2007 Have a look at [url=http://regular-expressions.info/charclass.html]character classes and their shorthands[/url]. If you're trying to say "not a through z" use[tt] [^a-z][/tt]. You can also use [url=http://regular-expressions.info/unicode.html#prop]Unicode properties[/url]. Link to comment https://forums.phpfreaks.com/topic/36139-patterns/#findComment-171612 Share on other sites More sharing options...
test Posted January 29, 2007 Author Share Posted January 29, 2007 Sounds OK. Thanks! Link to comment https://forums.phpfreaks.com/topic/36139-patterns/#findComment-171655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.