Regular Expressions 101

Community Patterns

Community Library Entry

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) - 10 years ago