Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:.*[\/\\])?(?<FileNameWithoutExtension>.*)\.(.*?(?=\#|\?|$))
/
gm

Description

Match filenames in URLS (updated)

Submitted by anonymous - 2 years ago (Last modified 2 years ago)