Regular Expressions 101

Community Patterns

mb_wordwrap

0

Regular Expression
PCRE (PHP <7.3)

/
(?:((?>.{1,48}(?:(?<=[^\S\r\n])[^\S\r\n]?|(?=\r?\n)|$|[^\S\r\n]))|.{1,48})(?:\r?\n)?|(?:\r?\n|$))
/
g

Description

no description available

Submitted by anonymous - 4 years ago