Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - 4 days ago
1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 9 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 9 days ago

Extract URL parts only named capturing groups

3

Regular Expression
Golang

`
^(?P<scheme>[^:\/?#]+):(?:\/\/)?(?:(?:(?P<login>[^:]+)(?::(?P<password>[^@]+)?)?@)?(?P<host>[^@\/?#:]*)(?::(?P<port>\d+)?)?)?(?P<path>[^?#]*)(?:\?(?P<query>[^#]*))?(?:#(?P<fragment>.*))?
`
gm

Description

Loading markdown...
Submitted by dixanms - 2 years ago