Usage example:
Organizing downloads by games folders when downloading mods in Nexus Mods. url and finalUrl are the same and don't have the name of a game for which the mod is being downloaded, while initial url have (initialUrl = "https://www.nexusmods.com/tinytinaswonderlands/mods/52?tab=files&file_id=121", with regex .+?:\/\/([^\/]+)\/([^\/]*) I get an appropriate for folder name "tinytinaswonderlands" 2nd match)
Usage example: Organizing downloads by games folders when downloading mods in Nexus Mods. url and finalUrl are the same and don't have the name of a game for which the mod is being downloaded, while initial url have (initialUrl = "https://www.nexusmods.com/tinytinaswonderlands/mods/52?tab=files&file_id=121", with regex .+?:\/\/([^\/]+)\/([^\/]*) I get an appropriate for folder name "tinytinaswonderlands" 2nd match)