Skip to content

Commit 8a66503

Browse files
committed
added regex folder
1 parent 7541920 commit 8a66503

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
abc@example.co.uk
2+
abc@example.com
3+
abc<>@example.com
4+
abc@example@gmail.com
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#! /bin/bash
2+
cat input | grep -Pv '(^|\s)[a-zA-Z][a-zA-Z0-9-_+.]*@[a-zA-Z0-9-]+\.[a-zA-Z]+(\.[a-zA-Z]+)?'

0 commit comments

Comments
 (0)