Vince889 Posted December 6, 2008 Share Posted December 6, 2008 I'm looking for a pattern that allows any character besides: \ / . , " ' & % < > @ and alt-space I've been trying to make one all day, but i've failed. Can anyone help out? Link to comment https://forums.phpfreaks.com/topic/135841-a-question-about-regex-pattern/ Share on other sites More sharing options...
premiso Posted December 6, 2008 Share Posted December 6, 2008 $pattern = '/(^[a-z0-9]*)/i'; Something like that? Link to comment https://forums.phpfreaks.com/topic/135841-a-question-about-regex-pattern/#findComment-708088 Share on other sites More sharing options...
MadTechie Posted December 7, 2008 Share Posted December 7, 2008 patten [^\\/.,"'&%<>@] example $data = preg_replace('#[^\\\\/.,"\'&%<>@]#i', '', $data); Link to comment https://forums.phpfreaks.com/topic/135841-a-question-about-regex-pattern/#findComment-708204 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.