Skip to content

Commit

Permalink
Added ip regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiHang Gao committed Mar 24, 2017
1 parent ecf2086 commit e1d4134
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Email](#email)
- [Phone](#phone)
- [Domain-name](#domain-name)
- [IP](#ip)

## Email

Expand Down Expand Up @@ -35,4 +36,15 @@
```regex
^((http:\/\/)|(https:\/\/))?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}(\/)
```

![domain-name](images/domain-name.png)

## IP

`127.0.0.1`

```regex
((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))
```

![ip](images/ip.png)
Binary file added images/ip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e1d4134

Please sign in to comment.