Regular Expressions 101

Community Patterns

Matches the full path to a file until the last slash or back slash, leaving just the filename itself unmatched

0

Regular Expression
ECMAScript (JavaScript)

Description

For instance in the string: /bla/di/bla/file.extention it would match: /bla/di/bla/

Submitted by anonymous - 7 years ago