Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-08-04 22:23
Flavor·ECMAScript (JavaScript)

/
^((?:\w+\s?){1,12}).*
/
gm
Open regex in editor

Description

usefull if you want to return (N) words instead of (N) chars

Submitted by Pavel Dominguez