Regular Expressions 101

Sponsors

Library entries

1
pcre

Url include with negative lookbehind

no description available
Submitted by anonymous - 5 years ago
1
pcre

Match on Valid IP

Match on VALID IP address anywhere in string.
Submitted by KyleV - 5 years ago
1
pcre

SIREN

SIREN for french business register number
Submitted by Maxime - 5 years ago
1
pcre

SIRET

Business register number for France SIRET
Submitted by Maxime - 5 years ago
1
pcre

RNA

French association register number RNA
Submitted by Maxime - 5 years ago
1
pcre

Replace for CSS

no description available
Submitted by anonymous - 5 years ago
1
pcre

IPV4 regex

no description available
Submitted by anonymous - 5 years ago
1
pcre

toby regex

no description available
Submitted by anonymous - 5 years ago
1
pcre

c/c++ include

no description available
Submitted by anonymous - 5 years ago
1
pcre

ESR und ESR+

ESR Einzahlungsscheine (CH)
Submitted by dhu - 5 years ago

URL parser/validator

Vote

1

Regular Expression
pcre

/
^(https?:\/\/)? # optional scheme ((?:[-a-z0-9._~!$&\'()*+,;=]|%[0-9a-f]{2})+ # optional username@, (?::(?:[-a-z0-9._~!$&\'()*+,;=]|%[0-9a-f]{2})+)?@)? # or username:password@ (?:((?:(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])) # IPv4 address |((?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z][a-z0-9-]*[a-z0-9])) # or dot-separated domain labels (:\d+)? # optional port number ((?:\/(?:[-a-z0-9._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+)*\/?) # path (possibly empty, may end in /, no double-// allowed) (\?(?:[-a-z0-9._~!$&\'()*+,;=:@\/?]|%[0-9a-f]{2})*)? # optional querystring (\#(?:[-a-z0-9._~!$&\'()*+,;=:@\/?]|%[0-9a-f]{2})*)?$ # optional fragment
/
ix

Description

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