Link to home
Start Free TrialLog in
Avatar of thoughtless
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.
ASKER CERTIFIED SOLUTION
Avatar of pio0203
pio0203

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thoughtless
thoughtless

ASKER

Thanks, I apperciate the help,