Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2006, 09:27 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default validation expression

Hi,
I have this validation expression
\w+([\s+.]\w+|\s+)*
it checkes for user input.checks only letters and numbersnow how can I add unicode support to it so it accepts farsi or arabic character
please it's very urgent
 
Old October 7th, 2006, 09:58 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

This site should hlep you
http://www.regexp.info/unicode.html


--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
 
Old October 7th, 2006, 10:20 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it seems very difficulat
any ready example?

 
Old October 7th, 2006, 11:17 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Unfortunately its not going to get any less difficult, you have to take that expression that I wrote for you and then add the unicode support, to do this you have to add

\u

followed by the Hex value of the character so something like this:

[\\u2200-\\u22FF]

which checks for this range of chars:

{"#8704;", "#8712;", "#8734;", "#8707;", "#8713;", "#8747;", "#8810;", "#8743;"}

(a note, the above may render as #NNNN on your browser, it actually will search for the character itself)

You may want to take a look at the program PowerGREP which is a regular expression editor (though not free) or check out source forge as i *think* there is an open source RegEx editor on there.


--Stole this from a moderator

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of an Expression amlesh Beginning VB 6 1 October 25th, 2007 02:31 PM
Validation expression sreevani ASP.NET 1.0 and 1.1 Basics 1 April 5th, 2007 11:22 AM
Password Validation with Regular Expression moghazali ASP.NET 1.0 and 1.1 Basics 0 January 7th, 2007 04:50 AM
Regular Expression validation ranakdinesh ASP.NET 2.0 Professional 0 March 3rd, 2006 08:54 AM
Validation Expression ashokparchuri General .NET 2 May 6th, 2005 05:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.