Spidi Spidi - 1 year ago 65
PHP Question

Regular expression to exclude specific words but allow certain patterns

I am generating a regular expression that can contain any letters or numbers or an underscore

but not contain words that exactly match
and lastly

Can anybody help me with this?

Answer Source

Did the trick for me. Thanks for your answers guys