Regex:
\b(\(\d{3}\)|\d{3})?[-.]?\d{3}[-]?\d{4}\b
My input file has two types of phone numbers. One, whose first 3 digits are enclosed in parenthesis and the other with no parenthesis. Eg:
"(201)-450-4479" ,"234-345-3456"
I want to match both type of phone numbers using alternate operator.
Please suggest me. What modification is required for above mentioned expression to get the intended result?