我有一個json格式的巨大字符串。查找字符串的出現次數並使用C#替換
問題在於格式不正確。
我想要做的是找到一些標籤的出現和替換它的值與其他一些價值
我要搜索的是這串"distanceP":\somtext, and "distance":\sometext,
我想這兩個字符串被替換與"distanceP":"\somtext", and "distance":"\sometext",
的字符串也能像"distanceP":\u1633, OR "distance":\u16asa3, OR "distanceP":\u1633sass,
請不帶引號和反斜線跡象都包括在內。
任何人都可以告訴我REGEXP表達式來搜索和替換我自己的值。
我不敢相信這個問題還沒有被問到。 –
對不起,我不知道REGEX – user2539602
@ user2539602然後你應該學習它。 – tnw