Regular Expressions 101

Extract file name from path

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
(?=[^\/]+$)(.*(?=\.))
/
gm

Description

Extracts string between the last / and .

Submitted by superfranky32