Regular Expressions 101

Best REGEX for extracting FILENAME WITHOUT EXTENSION and EXTENSION from any Posix-like path (version 4)

Open Workspace
  • PCRE (Legacy)
  • Match
-1

Regular Expression

/
^(?:.*[\/\\])?(?<FileNameWithoutExtension>.*)\.(.*)$
/
gm

Description

Best REGEX for extracting FILENAME WITHOUT EXTENSION and EXTENSION from any Posix-like path (version 4)

Submitted by Anonymous