How can you extract phone numbers with a specific format from a large text document in UiPath using regex?
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:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.