Regular Expressions 101

Community Patterns

0

email

PCRE2 (PHP >=7.3)
validate email
Submitted by anonymous - a year ago
0

my_device_usage

PCRE2 (PHP >=7.3)
usage
Submitted by Keith - a year ago
0

Company name

ECMAScript (JavaScript)
Company name
Submitted by anonymous - a year ago
0

ip address

Java 8
ip address regex
Submitted by shyam - a year ago

Hostname validation

3

Regular Expression
Golang

`
(?i)^(?:([a-z0-9-]+|\*)\.)?([a-z0-9-]{1,61})\.([a-z0-9]{2,7})$
`
gm

Description

Loading markdown...
Submitted by AnonymousDapper - 7 years ago