RegularExpressionValidator

O

Owen

I need to use a regular expression which allows:

* 0..250 characters length.
* All characters except for single-quote ( ' ) or percent ("%").

I've tried and failed miserably to construct such an expression that works.

Please help !

thanks,
Owen
 
H

Hans Kesting

Owen said:
I need to use a regular expression which allows:

* 0..250 characters length.
* All characters except for single-quote ( ' ) or percent ("%").

I've tried and failed miserably to construct such an expression that
works.
Please help !

thanks,
Owen

^[^'%]{,250}$

from the start (^) to the end ($)
any char except ( [^ ... ] ) your chars ( ' % )
0 to 250 times repeated ( {,250} )

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top