Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-11-22 15:48
Flavor·ECMAScript (JavaScript)

/
(?:^| )([a-zA-Z0-9])
/
gm
Open regex in editor

Description

You can use this to match the first character in each word. Use a function to then iterate over the matches to transform into the various cases.

Submitted by Matt Scheurich