Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 如何将用于执行RegEx.replace的C#行翻译为VB_Vb.net_Regex - Fatal编程技术网

Vb.net 如何将用于执行RegEx.replace的C#行翻译为VB

Vb.net 如何将用于执行RegEx.replace的C#行翻译为VB,vb.net,regex,Vb.net,Regex,sTitle=Regex.Replace(sTitle,@“&\w+;”,“”)这不是有效的C#开头。字符串文本的末尾有一个c,我修正了这个问题。我补充说,这是我努力让它发挥作用的一种尝试。看起来我可以把@去掉,而且似乎可以用。 sTitle = Regex.Replace(sTitle, "&\w+;", "")

sTitle=Regex.Replace(sTitle,@“&\w+;”,“”)

这不是有效的C#开头。字符串文本的末尾有一个
c
,我修正了这个问题。我补充说,这是我努力让它发挥作用的一种尝试。看起来我可以把@去掉,而且似乎可以用。
sTitle = Regex.Replace(sTitle, "&\w+;", "")