Regular Expressions 101

Community Patterns

HTML Figure Caption German

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 - a year ago (Last modified a year ago)