Regular Expressions 101

Community Patterns

0

分组

ECMAScript (JavaScript)
显示分组
Submitted by Jason - 2 years ago
0

篩選MP Log Day

.NET 7.0 (C#)
篩選MP Log Day
Submitted by anonymous - 2 years 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)