2
我已經得到了下面的示例文本TextPad正則表達式:如何查找和替換尖括號內的字符?
Hello | World
<Hi | Hello|How | are | you><test|string |for |regex>
sample | text <however|replace|pipe>
與~
轉換如下
Hello | World
<Hi ~ Hello~How ~ are ~ you><test~string ~for ~regex>
sample | text <however~replace~pipe>
即在<>
更換|
我想這<(?:.*?)(\|)(?:.*?)>
(http://regex101.com/r/mX1sO0)
但它只匹配t他先是|
,角度爲<>
。我不知道如何取代它。任何方向?