Jump to content

Ignore Words?


ZachMEdwards

Recommended Posts

You mean take out everything out of a string that is not "Peanut Butter" or match a string if it does not contain "Peanut Butter"? Either way you don't need regex for this. If the former just to str_replace to remove "Peanut Butter" from the string and you have everything that's left. If the latter and you just want to see if a string does or does not contain "Peanut Butter" use strpos.

Link to comment
https://forums.phpfreaks.com/topic/205331-ignore-words/#findComment-1074723
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.