Regular Expressions 101

Community Patterns

find all wikipedia links in a text

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\(https:\/\/en\.wikipedia\.org\/wiki[^)]*\)
/
gm

Description

a regex that finds all expressions that start with "(https://en.wikipedia.org/wiki" and end with a closing bracket.

Submitted by David - a year ago