regex string not contains year

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

Moderator: General Moderators

Post Reply
Torsten
Forum Newbie
Posts: 1
Joined: Sat May 29, 2010 5:38 am

regex string not contains year

Post by Torsten »

Hi


I Like to create a regex which does not contain a year like that /^(18|19|20)[0-9]{2})$/ .
It should be pretty simple but I tried alot of comination one worked.

I want to any string not to contain that kind of numbers. Like a wildcard before and after ?


Thanks Torsten
Post Reply