Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-12-14 14:31
Flavor·PCRE2 (PHP)

/
(<[^>]+>)+
/
img
Open regex in editor

Description

Removing HTML tags completely and only keeping text between them. USAGE: I used it to sum words to calculate reading time for articles.

Submitted by @navoneel-talukdar - StackOverflow