Community Patterns

Community Library Entry

2

Regular Expression
Created·2016-04-22 01:03
Flavor·PCRE (Legacy)

/
(\s+[^a-z0-9]+|[^a-z0-9']+\s+|[\s&\/]|^)+(\w)
/
g
Open regex in editor

Description

Selects first letter of space separted word with exceptions. This allows bypassing 's and such.

Forcing separating charter can be set at [\s&\/]

$1: separating part $2: first letter of a word

Submitted by anonymous