Regular Expressions 101

Sponsors

Library entries

0
pcre2

matches 4 or 6 or 8 digit which might be otp

test
Submitted by test - an hour ago
0
javascript

Regex for url

Regex for url
Submitted by anonymous - 20 hours ago
0
pcre2

InputInteger

InputInteger
Submitted by anonymous - 2 days ago
0
pcre2

hidrologia

qualidade
Submitted by anonymous - 2 days ago
0
javascript

RegEX IBAN SEPA with spaces

RegEX IBAN SEPA with spaces
Submitted by Karim MB - 3 days ago
0
javascript

js获取url上的参数

/(+)=(+)/gm
Submitted by anonymous - 5 days ago
0
pcre2

Celular Brasil

Validar celular do Brasil
Submitted by Paulo Neves - 6 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