thoughtless
asked on
Regular Expressions
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.
Example:
this is something I would like to allow
$string = "Today is the day";
or
$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.
Example:
this is something I would like to allow
$string = "Today is the day";
or
$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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER