Regular Expressions 101

Community Patterns

0

PLP redirection

PCRE2 (PHP >=7.3)
PLP redirection
Submitted by anonymous - 5 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 - 10 days ago

Validate Wikipedia URL and extract Article Title

1

Regular Expression
ECMAScript (JavaScript)

/
^((http:|https:){0,1}\/\/.*\.wikipedia\.org){0,1}(\/wiki\/|\/w\/){1}(index\.php\?title=){0,1}(?!User:|Wikipedia:|WP:|Project:|File:|Image:|MediaWiki:|MW:|Template:|Help:|Category:|Portal:|Draft:|TimedText:|Module:|Gadget:|Gadget definition:|Topic:|Education Program:|Book:|WT:|Special:|Wikipedia Talk:|Talk:|H:|CAT:|User talk:|Image Talk:|MOS:|P:|T:|Main_Page)(?<ARTICLENAME>(?!index\.php\?title=)[^&|?|\n]*)[&|?]?.*$
/
miug

Description

Loading markdown...
Submitted by Martin Shaw - 6 months ago
(Last modified 6 months ago)