Regular Expressions 101

Community Patterns

Fetch file information using File URL.

0

Regular Expression
PCRE (PHP <7.3)

/
.*\.(\w{3})
/
gm

Description

Get information from File URL such as,

  1. Extension.
  2. Parent folder name.
  3. Drive name.
  4. File name.
Submitted by -Harshal.Ahire (ahireharshal@gmail.com) - 9 years ago