Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-09 14:29
Flavor·ECMAScript (JavaScript)

/
^( +)(?=\S)
/
gm
Open regex in editor

Description

find the number of spaces at the beginning of lines in a file.

Submitted by andy