Was wondering if someone could provide me with a regular expression that would search for any nonword character in a string but ignore white spaces.
this is something I would like to allow
$string = "Today is the day";
$string = "Today is the 2nd day";
This is something I would like to catch
$string = "T*day is the day";
maybe I have been staring at this thing to long as it seems like a simple thing to do, but for some reason I can't seem to make a regex to work.