Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-10-31 11:55
Flavor·PCRE (Legacy)

/
(\s+)((?<=\s)[a-z]|^[a-z]).*?([A-Z]?(?<=[a-zA-Z0-9])[a-zA-Z0-9]+)
/
g
Open regex in editor

Description

first groups all white space $1 second groups all first letter of every word except capitals third groups remaining letters

Submitted by slimelord