码迷,mamicode.com
首页 > 其他好文 > 详细

Valid Phone Numbers

时间:2017-04-25 18:29:15      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:leetcode   and   txt   rom   out   problems   ems   problem   print   

https://leetcode.com/problems/valid-phone-numbers/


# Read from the file file.txt and output all valid phone numbers to stdout.

awk ‘/^([0-9]{3}-|\([0-9]{3}\) )[0-9]{3}-[0-9]{4}$/{print $0}‘ file.txt

Valid Phone Numbers

标签:leetcode   and   txt   rom   out   problems   ems   problem   print   

原文地址:http://www.cnblogs.com/jzssuanfa/p/6763411.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!