Community Patterns

Community Library Entry

1

Regular Expression
Created·2014-10-15 09:39
Flavor·ECMAScript (JavaScript)

/
^[\s]+([\w]+)
/
Open regex in editor

Description

Simply gets the command from a script command, automatically removes unwanted spaces.

Submitted by anonymous