Page 1 of 1

I need a regular exp urgently.....

Posted: Thu Sep 16, 2004 5:36 pm
by chints
Hi i need a regular expression urgently for validating a field which has following rules:
1. There has to be atleast one non numeric character
2. '<' '>' and '|' shld not be allowed.

HELLLLLLPPP

Posted: Thu Sep 16, 2004 6:36 pm
by george
Hi,

The following pattern should work:
[^><\|]*[^0-9><\|][^><\|]*
That is zero or more characters different from ><| followed by a character different from 0123456789><| followed by zero or more characters differnt from ><|.

Best Regards,
George