Skip to content

Add: Valid Phone Numbers #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions problems/valid-phone-numbers/file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
987-123-4567
123 456 7890
(123) 456-7890
5 changes: 5 additions & 0 deletions problems/valid-phone-numbers/valid_phone_numbers.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# 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
1 change: 0 additions & 1 deletion problems/valid-phone-numbers/valid_phone_numbers.go

This file was deleted.

1 change: 0 additions & 1 deletion problems/valid-phone-numbers/valid_phone_numbers_test.go

This file was deleted.