RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find unicode persian alphabet And Numbers
Expression
^[\u0600-\u06ff0-9\s]+$|[\u0750-\u077f0-9\s]+$|[\ufb50-\ufc3f0-9\s]+$|[\ufe70-\ufefc0-9\s]+$|[\u06cc0-9\s]+$|[\u067e0-9\s]+$|[\u06af0-9\s]$|[\u06910-9\s]+$|^$
Description
This Regex chceck an input string for persian unicode alphabet characters. For Example In C#.NET: Regex.IsMatch(Text, "^[\u0600-\u06ff0-9\s]+$|[\u0750-\u077f0-9\s]+$|[\ufb50-\ufc3f0-9\s]+$|[\ufe70-\ufefc0-9\s]+$|[\u06cc0-9\s]+$|[\u067e0-9\s]+$|[\u06af0-9\s]$|[\u06910-9\s]+$|^$");
Matches
علی|علي 123 |گچ |پژنگ| گچ پژی 123
Non-Matches
aعلی| علی 12E
Author Rating: Not yet rated. Saeed Mokhtari
Source http://www.regexlib.com/UserPatterns.aspx?authorId=9b9b7926-1e4b-44fa-8a6b-6b340d804d07
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials