471,067 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,067 software developers and data experts.

Regular Expression problem

1
Hi,
I am new to regular expression stuffs. I am facing problem while implementing a reg. exp. for a textbox using regular expression validator in ASP page.

Requirement:
It will take only alphanumeric value i.e a-z,A-Z and 0-9

I am using reg. exp. ^[a-zA-Z0-9]*$
This is fine with a-z,A-Z and 0-9 checking but it also taking japanese characters

Please tell me where I am worng.

Thanks,
Jan 11 '07 #1
2 1316
try this [a-z,A-Z,0-9, ]*
hope it works!
Feb 12 '07 #2
kbipul
27
Hi,
I am new to regular expression stuffs. I am facing problem while implementing a reg. exp. for a textbox using regular expression validator in ASP page.

Requirement:
It will take only alphanumeric value i.e a-z,A-Z and 0-9

I am using reg. exp. ^[a-zA-Z0-9]*$
This is fine with a-z,A-Z and 0-9 checking but it also taking japanese characters

Please tell me where I am worng.

Thanks,
You can best use [w]*.
It will solve your problems
Feb 12 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Dimitris Georgakopuolos | last post: by
3 posts views Thread by James D. Marshall | last post: by
7 posts views Thread by Billa | last post: by
9 posts views Thread by Pete Davis | last post: by
3 posts views Thread by LordHog | last post: by
25 posts views Thread by Mike | last post: by
5 posts views Thread by shawnmkramer | last post: by
1 post views Thread by sunil | last post: by
1 post views Thread by Shawn B. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.