Retrieving part of URL using RegEx
- 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 have this example of a data which consist of links.
https://files-example.com/Marie/Abc/03%This%is%40title%20A.mpv |
https://files-example.com/Marie/Abc/08%Another%40Video%title%A.mpv |
https://files-example.com/Marie/Ghi/08%Title%40Title%title%A.mpv |
Using RegEx, i wish to get the company name - Abc, Def and Ghi here for those of https://files-example.com files .
For example, in this case, bolded is the company name.
https://files-example.com/Marie/Abc/03%This%is%40title%20A.mpv
How do i write a regular expression that checks those of https://files-example.com and retrive that of just the company name in another column?
I am fairly new to RegEx and would absolutely appreciate your help.
- Labels:
- Preparation
- Regex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @reignM
This expression appears to do what you're looking for
https\:\/\/files-example.com\/.*?\/(.*?)\/.*
Dan
