Similar to an earlier question I would like to request a regular expression because I don’t have to knowledge to write it myself…
Could I please get examples of the following, as regular expressions
Values must equal:
nn-nn-nnnn
nn/nn/nnnn
Where n = an integer.
TRY this one
[0-9-]{2}(/|-)[0-9]{2}(/|-)[0-9]{4}
i check this in
http://regex.larsolavtorvik.com/
and its working fine