How to set the RegularExpression

A

ad

I want to limit the iput of Textbox:
1.The input character must within '0'-'9' or 'a'-'d', for instance
a091b, d23c, 123, ad.. is ok, but f9a, ddu.. is not ok
2. null value is ok

I set RegularExpressionValidator to a textbox, but how can I set the
RegularExpressionValidator.ValidationExpression?
 
C

CodeMeister

I think the pattern would be something like this:

^[0-9a-d]*$

I hope this helps.

Jon
 

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

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top