193-valid-phone-numbers

DevGod
Vtuber
# Read from the file file.txt and output all valid phone numbers to stdout.grep -P '^(\d{3}-|\(\d{3}\) )\d{3}-\d{4}$' file.txt
# Read from the file file.txt and output all valid phone numbers to stdout.grep -P '^(\d{3}-|\(\d{3}\) )\d{3}-\d{4}$' file.txt