Regular Expressions 101

Community Patterns

0

for-orth

Java 8
For orth
Submitted by gastipatis - a year ago
0

custom email

.NET (C#)
custom email
Submitted by anonymous - a year ago
0

test

PCRE (PHP <7.3)
teste
Submitted by anonymous - a year ago
0

mvc

PCRE (PHP <7.3)
com c#
Submitted by anonymous - a year ago
0

1

PCRE (PHP <7.3)
Prueba 1
Submitted by anonymous - a year ago
0

filter

PCRE (PHP <7.3)
filter string
Submitted by anonymous - a year ago

URL extractor

2

Regular Expression
PCRE (PHP <7.3)

/
^(?#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 - 7 years ago