Skip to content

Commit

Permalink
Added images
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiHang Gao committed Mar 24, 2017
1 parent 7a9d36f commit 3d2151c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Common Regular Expression

![Regex](http://cdoco.com/images/regex2.png)
![Regex](images/regex.png)

## Table of Contents

Expand All @@ -9,16 +9,20 @@

## Email

example: `[email protected]`
`[email protected]`

```regex
^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$
```

![email](images/email-regex.svg)

## Phone

example: `13012345678`
`13012345678`

```regex
^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$
```
```

![email](images/phone-regex.svg)
19 changes: 19 additions & 0 deletions images/email-regex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3d2151c

Please sign in to comment.