Page 1 of 1

regex string not contains year

Posted: Sat May 29, 2010 5:47 am
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