Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-02-06 10:38
Updated·2025-02-06 11:00
Flavor·ECMAScript (JavaScript)

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

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