i am new to regex in PHP, and had a question
What i am trying to do (in PHP):
- Find whether a string contains special characters or non-alphabets in a name (e.g. if term contains
-
,*
,.
,&
, etc) - If string contains special characters - find and replace it using
str_replace
. Sample strings include 'e*trade', 'e-trade', 'Barnes&Noble', etc.