easy question! please help

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
i want to got the file name "hourse.jpg" from the directory like L:\caiji\company\photo\hourse.jpg
what is the regex code??
there have a simple regex code! but i forgot, who can help me?
 

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 807
Баллы
113
Text processing=>Replace=>Regex

What to search - .*\\
What to replace with - leave empty

80478
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
i know the way, but it is not the the simple, it must two step!
i want found one step, there just only need one regex code!
but i forgot!
 

BAZAg

Client
Регистрация
08.11.2015
Сообщения
1 767
Благодарностей
2 414
Баллы
113
i want to got the file name "hourse.jpg" from the directory like L:\caiji\company\photo\hourse.jpg
what is the regex code??
there have a simple regex code! but i forgot, who can help me?
80490


C#:
string path = @"L:\caiji\company\photo\hourse.jpg";
return System.IO.Path.GetFileName(path);
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
wow, thanks so much!it is a good way!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)