regex string not contains year
Posted: Sat May 29, 2010 5:47 am
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
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