我有一個字符串 - +3]##i recently purchased the canon powershot g3 and am extremely satisfied with the purchase . use
正則表達式的字符串分割字符串成部分
我想(blankspace/whitespace)
輸出更換+3]##
:
i recently purchased the canon powershot g3 and am extremely satisfied with the purchase . use
有多次出現的+3]##
和數字不斷變化它+3]##
有時它可以是+1##]
或-1]##
任何人都可以幫我用正則表達式來替換所有這樣的字符串爲空。
謝謝。
這是什麼,你試圖達到什麼目的?你想要分割的字符串是什麼,輸出結果是什麼,你到目前爲止嘗試過了什麼? –
我有客戶評論文件。在該文件中,數據格式不正確。 –
注意:正如現在寫的,你允許有一個加號或一個數字。那真的是你想要的嗎? – GhostCat