Extract Phone Numbers using Regex

How can you extract phone numbers with a specific format from a large text document in UiPath using regex?

@sneha41

can you share the sample text so that we can help with regex

@sneha41

You can use the Matches activity to extract phone numbers with a specific format:

Use this Regex:

System.Text.RegularExpressions.Regex.Matches(inputText, @"\b\d{3}-\d{3}-\d{4}\b")

example pattern for extracting U.S. phone numbers:

@Dilli_Reddy

Thank you its working

1 Like

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