Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-02-17 03:00
Updated·2024-02-17 03:06
Flavor·PCRE (Legacy)

/
^([\w.]{1,})\.([\w]{3,4})\.([\w]{3,4})$
/
gm
Open regex in editor

Description

I use this to find files with two or more extensions (i.e. file.txt.txt). This will work with files with 3 or 4 character or numeric (or both) file extensions (i.e. pdf, xlsx).

Submitted by Curve