Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-09-29 14:38
Updated·2022-10-01 14:43
Flavor·PCRE2 (PHP)

~
((^(?:\S+\s+\n?){1,2})\w+)
~
gm
Open regex in editor

Description

Get words in a certain range from a varied string

Submitted by anonymous