Hi ,
this might sound silly, i'm using
org.apache.commons.validator.GenericValidator class, for some
validation. I need to check if a string contains only alphabets. i
wrote the code as
org.apache.commons.validator.GenericValidator.matchRegexp(value,
"[a-zA-Z]")
but it is not workiing. Please advice
Chanchal
NullBock - 13 Dec 2005 07:24 GMT
try GenericValidator.matchRegexp(value, "^[a-zA-Z]+$")
Walter Gildersleeve
Freiburg, Germany
______________________________________________________
http://linkfrog.net
URL Shortening
Free and easy, small and green.