shell/正则表达式/邮件验证.sh

8 lines
123 B
Bash
Raw Normal View History

2016-05-18 15:54:22 +08:00
#!/bin/bash
#验证邮件
gawk --re-interval '/^([a-zA-Z0-9_\-\.\+]+)@([a-zA-Z0-9_\-\+]+)\.([a-zA-Z]{2,5})/{print $0}'