Title |
Test
Find
Parse file path
|
Expression |
^(?<1>.*[\\/])(?<2>.+)\.(?<3>.+)?$|^(?<1>.*[\\/])(?<2>.+)$|^(?<2>.+)\.(?<3>.+)?$|^(?<2>.+)$ |
Description |
Parses any file path and extracts directory, file name and extension separately. |
Matches |
d:\Program Files\Hello.txt | /home/Hello.txt | Hello.txt | .\Hello |
Non-Matches |
\\Hello\ | Hello\\ |
Author |
Rating:
Not yet rated.
Tim
|
Source |
|
Your Rating |
|
Title: Matches extensions containing spaces
Name: Dizzypointed
Date: 2/12/2010 3:02:01 AM
Comment:
The exp matches "C:\test1\test2.aspx jh". Returning "aspx jh" as the ext.