Regex for everything before last forward or backward slash

后端 未结 3 1505
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 17:16

I need a regex that will find everything in a string up to and including the last \\ or /.

For example, c:\\directory\\file.txt should result in c:\\directory\\

3条回答
提交回复
热议问题