I required second phone number in the string

A paragraph is defined as “a group of sentences or a single sentence that forms a +911234567899unit” (Lunsford and Connors 116). Length and appearance do not determine whether a section in a paper is a paragraph. For instance, in some styles of writing, +91 9876543211 particularly journalistic styles, a paragraph can be just one sentence long.                                                                                                                       How to get second phone number using regex.

Hi @Manju_Reddy_Kanughula

How about this expression?

System.Text.RegularExpressions.Regex.Match(YourString,"\b\d{10}\b").Tostring

Regards
Gokul

Can I have explanation?

\b → is the word boundary, So it will look for 10 Numbers.
\d → Any digit
{10} → 10 Numbers

Regards
Gokul

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