I have to use regular expressions in a c# application and I try to use it as a string to use regex.match method. My regular expression is like id="(tt[0-9]+)\|imdb and I convert it to string like "id\"(tt[0-9]+)\\|imdb" but it doesn’t work. Do you have any solutions or applications that convert regexes to strings??
I have to use regular expressions in a c# application and I try to
Share
You can drop the escaping and use a @ sign.
Note: you have to double the doublequotes