Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-10-10 08:13
Updated·2022-10-12 10:43
Flavor·PCRE2 (PHP)

/
(^Bild \d.+$)
/
gm
Open regex in editor

Description

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

Submitted by Hans Kannewitz