Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-04-17 18:59
Updated·2024-05-26 12:48
Flavor·ECMAScript (JavaScript)

/
^(?:[^<>:;,?"*|/.\n]+(?=\.?|$)|[^<>:;,?"*|/\n]+)
/
gm
Open regex in editor

Description

Selects only the filename of a file, including dotfiles.

Submitted by anonymous