-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: SitaramanM
Message 7 in Discussion

Hi Dolly   Have a doubt in your post... To use Regex regex = new Regex(@"[\p{L}]"); 
This would validate tamil , english and hindi alphabets in the string above.  I was 
wondering if there is some switch with \p or some other regex option that decides the 
unicode range without me specifying it explicitly depending on what my UICulture is 
set to. After I say CultureInfo ci = new CultureInfo("ta-IN",true); When I try to do a 
word match , it should validated strings based on my locale chosen. That way I don't 
hard code all the unicode ranges, I just write a generic regex, and decide my 
CultureInfo dynamically. Like in the above case, it should filter all non-Tamil 
characters Doesnt it happen by default?  My understanding is that whenever Methods in 
the  System.Text.RegularExpressions namespace are called they by default use the 
Thread.CurrentCulture Property to perform the operations    regards,   sr       
regards,   sr

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to