Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-03-31 22:21
Flavor·PCRE (Legacy)

/
(\<li\>(?:\n)*(?:.*)(?:\n)*\<\/li\>)
/
gm
Open regex in editor

Description

this can be used to capture all li items in a text and then wrap them in a ul tag.

Submitted by anonymous