Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(.{1,40})(?:\s+|\n|$)
/
iug

Description

fixed we do not need \b 'cose it broke with quotes used in processed text

Submitted by anonymous - 8 years ago