Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(^Bild \d.+$)
/
gm

Description

Finds paragraph with German "Bild # ..." and replaces it with HTML expressions for figure and figure caption surrounding it.

Submitted by Hans Kannewitz - 2 years ago (Last modified 2 years ago)