Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?:[a-z][a-zA-Z]*|[0-9]+|\[{1,2}[a-zA-Z]*\]{1,2})(?:\.[a-z][a-zA-Z]+)*$
/
gm

Description

This regex is used to match file names with camelCase names only. It allows numbers and [...], [[...]] as first characters.

Submitted by Florent Catiau-Tristant - 2 months ago (Last modified 2 months ago)