Skip to content

Commit 93d0927

Browse files
committed
Create 193.valid-phone-numbers.sh
1 parent 1e7c886 commit 93d0927

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

193.valid-phone-numbers.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://leetcode.cn/problems/valid-phone-numbers/
2+
# Date: 2023.08.04
3+
# Pass/Error/Bug: 1/3/0
4+
# 执行用时: 8 ms, 击败 19.03% 使用 Bash 的用户
5+
# 内存消耗:3.02 MB, 击败 60.66% 使用 Bash 的用户
6+
7+
# Read from the file file.txt and output all valid phone numbers to stdout.
8+
grep -E '^(\([0-9]{3}\)\ |[0-9]{3}-)[0-9]{3}-[0-9]{4}$' file.txt

0 commit comments

Comments
 (0)