2
Answers

How Can i use Regex.Replace with Non-English "ARABIC Strings

Alina John

Alina John

7y
5.1k
1
Hey Folks!
 
I am having a problem using Regular Expression in Non-English (URDU) string. I want to use
"Regex.Replace" with Urdu Strings to remove Special Characters but when I pass Urdu String to "Regex.Replace" it is removing entire urdu as considering it "NON-ENGLISH/INTEGRAL" value.
 
string name = Regex.Replace("Urdu ???? Here", @"[^0-9a-zA-Z]+" ," ");
 
Any suggestion? 
Answers (2)