Regular Expressions 101

Community Patterns

Wrap long string to spec length

29

Regular Expression
PCRE (PHP <7.3)

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

Description

no description available

Submitted by fullpipe - 11 years ago