Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-06-26 16:08
Updated·2022-06-27 09:05
Flavor·.NET 7.0 (C#)

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

Description

Match all filenames in any URL including those with ANSI escaped characters (dotNET version)

Submitted by The Fourth Bird