Regex Tool
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi - I am pretty new to Regex and I want to extract the word "Title" from below. Can someone please advise if I use the Regex tool, what do I put in the Regular Expression field if I just want to parse "Title"?
FullPath
E:\Title\SANDBOX\Below \Scotch Tape.zip
E:\Title\SANDBOX\Below PPPPP (2022-05-31).zip
E:\Title\SANDBOX\AAA\\ScotchTapes\ABL_\ScotchTape_20210803.xxx.yyy.zzz
E:\Title\SANDBOX\AAA\DailyReports\PostLoanSaleReports\PrePost_HolidaySales_bgtsd_20210910_144245.xlsx
Thank you
- Labels:
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use this one:
(?<=E\:\\)(.*?)(?=\\)
It is basically parsing everything between E\: and the next \
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks so much....it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @OEvangelista , i am glad to hear that :)
If you could accept my answer as a solution to mark this topic as solved, i would appreciate.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, @OEvangelista
Dear, the other way don't need regex for your case:
Substring([Path],FindString([Path], "\")+1,FindString(ReplaceFirst([Path], "\", "?"), "\")-(FindString([Path], "\")+1))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
