[thelist] ASP - Regular Expressions

elin tjerngren. artopod elin at artopod.se
Tue Aug 5 04:17:31 CDT 2003


Hi,

>     objRegExpr.Pattern = "^[a-zA-Z][\-]*[a-zA-Z$]"

(I don't know ASP but) I think you need a * or a + for the letters too, 
like:

^[a-zA-Z]*[\-]*[a-zA-Z]*$

* if you want zero or more, replace with + if you want to match one or 
more characters.

regards,

/Elin, http://artopod.com





More information about the thelist mailing list