Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
match backslace between the character
for example : server\\sqlexpress in c#


send me the regular expression for above example
Posted
Updated 28-Mar-12 20:03pm
v2

1 solution

Same as any other metacharacter (like period, dollar, curly brackets, etc etc) - put a backslash before it in the regex.
 
Share this answer
 
v2
Comments
jiya 2 29-Mar-12 2:05am    
send me example
Peter_in_2780 29-Mar-12 2:18am    
regex a\\b matches string a\b just like regex a\.b matches string a.b

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900