Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-11-03 12:06
Flavor·JavaScript

/
(?=~\/|\.\/|\..\/|\/|file:\/\/\/|\w)[\w\-\._\(\)\[\] ]+$
/
gim
Open regex in editor

Description

Finds the filename when given a full path.

Submitted by ground0hg