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? Quote 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? Quote 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); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.