Getting the last backslash in a filepath via regex

后端 未结 3 1083
攒了一身酷
攒了一身酷 2020-12-11 06:52

Given a file path such as: \\\\server\\folder_A\\folder_B\\etc\\more.mov

I need a regex that\'ll give me the last backslash so I can extract the actual file

3条回答
  •  遥遥无期
    2020-12-11 07:13

    Do you absolutely have to use regex? Why not split the string and grab the last element?

    
    

提交回复
热议问题