By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,333 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Reg exp question

P: n/a
Roy
Hi all,
I'm trying to validate a number field that has to be exactly six digits and
cannot start with a zero:
"^[1-9][0-9][0-9][0-9][0-9][0-9]$"
Is there any other way to do this?
Thanks,
Roy
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"^[1-9]\d{5}$"

"Roy" <Ro*@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
Hi all,
I'm trying to validate a number field that has to be exactly six digits
and
cannot start with a zero:
"^[1-9][0-9][0-9][0-9][0-9][0-9]$"
Is there any other way to do this?
Thanks,
Roy

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.