Regular Expressions 101

Community Patterns

0

PLP redirection

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

loyal

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

named capture

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

URL (URI) - TOTAL Breakdown: Named Groups (Supporting Literal, Relative, Dynamic URLs, with/without Filename/Ext, Query Parameters and/or Anchor Tags)

1

Regular Expression
ECMAScript (JavaScript)

/
(?<FULLREQUEST>^(?<HOST>(?<PROTOCOL>(?:http)?s?:?\/\/)(?<DOMAIN>[^\/]+\/)|(?<RELATIVE>(?:\.*\/?)+))(?<PATH>[^\s]+\/)?(?<FILENAME>(?:(?<NAME>[^\/\s\.\?\#]+?)?(?<EXT>\.[^\s\?\#]*)?|(?:\/[^\/\s\?\#]+?)))(?<QUERYSTRING>\?[^\s\#]+)?(?<ANCHOR>\#\S+)?$)
/
gim

Description

Loading markdown...
Submitted by @JJ for Nerdy Deeds, LLC - 6 months ago
(Last modified 6 months ago)