Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-06-26 16:09
Updated·2022-06-27 09:04
Flavor·JavaScript

/
(?:[=\/]|%2F)((?:(?!%2F)[^?&\s\/])+\.\w+)(?=[?&]|$)
/
gm
Open regex in editor

Description

Match all filenames in any URL including those with ANSI escaped characters (Js/python version).

Submitted by The Fourth Bird