Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-04-13 13:21
Flavor·Java

"
(?:(.{1,40})([\s-]|$))|(.{1,40})
"
gm
Open regex in editor

Description

This splits a text into sequences of max. 40 chars, concatting with a pipe

Submitted by anonymous