Regular Expressions 101

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

/
[\s]*<\/body.*>[\s]*<\/html.*>[\s]*\Z
/
mD

Description
Created·2026-01-27 19:15
Type·Match
Flavor·PCRE2 (PHP)

Selects the </body> and </html> tags from a string. You can probably do this with something easier, but this works

Submitted by Twineee
Open Workspace