https://leetcode.com/problems/valid-phone-numbers/
grep -E "^(\([0-9]{3}\) |[0-9]{3}\-)[0-9]{3}\-[0-9]{4}$" file.txt
Last updated 3 years ago
Was this helpful?