How can regex ingore certain characters?

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
dhrosti
Forum Commoner
Posts: 90
Joined: Wed Jan 10, 2007 5:01 am
Location: Leeds, UK

How can regex ingore certain characters?

Post by dhrosti »

Iv been struggling with this for w hile now and no joy, Im trying to match non-alpanumeric characters (\W) but excluding commas, single and double quotes.

Is there an "ingore these" character i could include in the pattern?
User avatar
dhrosti
Forum Commoner
Posts: 90
Joined: Wed Jan 10, 2007 5:01 am
Location: Leeds, UK

Post by dhrosti »

sorry, i think a caret works.
Post Reply