Regular Expressions 101

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?:^| )([a-zA-Z0-9])
/
gm

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 - 2 years ago