Regular Expressions 101

Sponsors

Library entries

0
pcre2

Host Regex

Get any hostname
Submitted by anonymous - 3 days ago
0
javascript

define_1

1
Submitted by anonymous - 3 days ago
0
pcre2

Phone (rus)

Russian phone number
Submitted by anonymous - 4 days ago
0
pcre2

TESTO denro tag

r
Submitted by anonymous - 4 days ago
0
pcre2

Unique graphql pagination update

Unique graphql pagination update
Submitted by Amos - 4 days ago
0
javascript

price with two decimals

test
Submitted by anonymous - 4 days ago
0
pcre2

스마트스토어 필터링

ㅌㅌ
Submitted by anonymous - 4 days ago
0
pcre2

S/O 73225392

Replaces one style of markdown image with another
Submitted by anonymous - 5 days ago

Url parser and validator

Vote

2

Regular Expression
javascript

/
^((?:(https?):\/\/)?((?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9])\.)(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9][0-9]|[0-9]))|(?:(?:(?:\w+\.){1,2}[\w]{2,3})))(?::(\d+))?((?:\/[\w]+)*)(?:\/|(\/[\w]+\.[\w]{3,4})|(\?(?:([\w]+=[\w]+)&)*([\w]+=[\w]+))?|\?(?:(wsdl|wadl))))$
/
gi

Description

Loading markdown...
Submitted by Antonino Sirchia - 7 years ago