Plz help me

hi i have a input like this
+917845963214
09845612789
954-4561-458
894-845-2245

i want only 10 digit phone number… i dont need +91 or 0 or (-)this shymbol

i want output like this
7845963214

i want only 10 digits number for all

@katta_nikhil ,

Right("YourVariable".Replace("-",""),10)

Output :
image

Regards,

5 Likes

@katta_nikhil
Also, Try regex replace

System.Text.RegularExpressions.Regex.Replace(YourString,"^\+91|^0|-","").Tostring.Trim

image

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.