我需要在C#中的正則表達式表達式,它可以刪除任何數量的雙引號進入我的字符串,這是一個csv文件,從StreamReader中讀取後,我想要替換所有在我的字符串中出現的雙引號。第一行是標題,第二行是數據。對於前:在C#中的正則表達式#
"E-mail","First Name","Last Name","Company"
"[email protected]","sanjay","sen","this is my "test" company"
所以理想的正則表達式應該給下面的輸出:
"E-mail","First Name","Last Name","Company"
"[email protected]","sanjay","sen","this is my test company "
所以雙引號從"this is my "test" company"
柱和生成物中去除成"this is my test company"
你甚至嘗試? – Luka
您確實收到了無引號引號的無效CSV文件嗎?另外,怎麼樣的錯誤的「公司」[email protected]「',應該怎麼處理? – Guffa
嗨Guffa,對不起,我糾正了不匹配的csv。我沒有太多的常規預期知識,所以想要幫助。 –