Regular Expressions 101

Sponsors

Library entries

2
pcre

MONTHDAY

no description available
Submitted by anonymous - 6 years ago
2
pcre

hex number check

check if a string is a hex number
Submitted by anonymous - 6 years ago
2
pcre

Numéro de sécurité sociale (France)

no description available
Submitted by Anas - 6 years ago
2
pcre

get all between 2 lines

no description available
Submitted by anonymous - 6 years ago
2
pcre

Positive Ints

no description available
Submitted by anonymous - 6 years ago
2
pcre

mikrotik

no description available
Submitted by anonymous - 6 years ago
2
pcre

Diiff

no description available
Submitted by anonymous - 6 years ago
2
pcre

the many john smiths

no description available
Submitted by anonymous - 6 years ago
2
javascript

get href

gets value of href
Submitted by me - 6 years ago
2
pcre

Separating Server and Domain from FQDN

no description available
Submitted by Awan - 6 years ago
2
pcre

fiddler raw to php array

no description available
Submitted by anonymous - 6 years ago
2
javascript

URL with Port

no description available
Submitted by rkl - 6 years ago

URL extractor

Vote

2

Regular Expression
pcre

/
^(?#protocol)(?<protocol>(?:ht|f)tps?)\:(?:\/\/)?(?#user/password)(?:(?<user>\S+?)(?::(?<password>\S+))?@)?(?#domaine)(?<domain>(?:(?:[a-z\x{00a1}-\x{ffff}0-9-]++\.)+(?#top_level_domain)(?<top_level_domain>[a-z\x{00a1}-\x{ffff}]{2,}))|(?<ip>(?:1?\d{1,2}|2[0-4]\d|25[0-5])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){3}))(?#port)(?::(?<port>\d{1,5}))?(?#directory)(?<directory>\/(?:[^?#\s])*)?(?#query)(?:\?(?<query>[^#\s]*))?(?#anchor)(?:#(?<anchor>[^\s]*))?$
/
guim

Description

Loading markdown...
Submitted by Gilles Marchand - 6 years ago