Skip to content

Commit 399bec0

Browse files
committed
Find Email
1 parent 074677c commit 399bec0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Find Email.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
function findEmail(str) {
2+
var re = /[a-zA-Z0-9\.]+@[a-zA-Z0-9\.]+/g;
3+
return str.match(re);
4+
}

0 commit comments

Comments
 (0)