Regular Expressions 101

Community Patterns

Add new line

0

Regular Expression
ECMAScript (JavaScript)

/
(.{60,80})(\s)
/
g

Description

Adds a new line at specified length and adjusts to the nearest space.

Submitted by anonymous - 6 years ago