一千萬個為什麽

搜索

C#中的正則表達式問題

如何從C#(Regex)中的字符串中只有兩個(“”)刪除一個char(“)

例:

123"43""343"54"" ==>  123"43"343"54"

"abc""def"gh""i  ==>  "abc"def"gh"i

提前致謝

最佳答案

You don't need regex for this. Just search for the sub-string "" and replace it with "

轉載註明原文: C#中的正則表達式問題