Please consider this string:
http://tempuri.org/IService1/GetData\
I want to get GetData
using regular expression. I test it with this code:
Regex regex = new Regex("\\/\\w*\\");
But I get this error:
System.ArgumentException: 'parsing "/\w*\" - Illegal \ at end of pattern.'
and then I test this code:
Regex regex = new Regex(@"\/\w*\\");
but it doesn't work and doesn't recognize any match.
Hot I can recognize GetData
in above string using regular expression?
Thanks