XpertWorlock Posted March 12, 2011 Share Posted March 12, 2011 trying to get a reg exp to work with any characters except certain words ex : www.adssa <-ignore as.ads <-capture Current code : ^([a-z]*(www))\. this captures www, I just can't figure out how to capture the opposite Quote Link to comment https://forums.phpfreaks.com/topic/230443-anything-but-certain-words/ Share on other sites More sharing options...
XpertWorlock Posted March 12, 2011 Author Share Posted March 12, 2011 got it, in case people would like to know ^(?!www)([a-z]*)\. Quote Link to comment https://forums.phpfreaks.com/topic/230443-anything-but-certain-words/#findComment-1186693 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.