Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
Please let me now how to create Data Annotation for numbers start with only (+) symbol and numbers only as below,

Ex: "+911234567890"

Thanks.
MSK
Posted

Try a regex:
^\+\d{1,12}$
Will find anything which is a plus followed by between 1 and 12 digits only.

Get a copy of Expresso[^] - it's free, and it examines and generates Regular expressions.
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900