用于匹配C#中的后缀的正则表达式是什么 [英] what is the regular expression for matching the backslace in c#
本文介绍了用于匹配C#中的后缀的正则表达式是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在字符之间匹配反斜杠
例如:c#
中的server \\ sqlexpress
给我发送上述示例的正则表达式
match backslace between the character
for example : server\\sqlexpress in c#
send me the regular expression for above example
推荐答案
与其他任何元字符(如句点,美元,大括号等)相同,请在其前面加上反斜杠正则表达式.
Same as any other metacharacter (like period, dollar, curly brackets, etc etc) - put a backslash before it in the regex.
这篇关于用于匹配C#中的后缀的正则表达式是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文