我有一些字符串,如:替換模式命令
樣品輸入:
Also known as temple of the city,
xxx as Pune Banglore as kolkata Delhi India,
as Mumbai India or as Bombay India,
Calcutta,India is now know as Kolkata,India,
從上面我想爲XXX XXXX的XX,轉換爲爲xxx_xxxx_xx,它應在最後爲後生效。
示例輸出以上:
Also known as temple_of_the_city,
xxx as Pune Banglore as kolkata_Delhi_India,
as Mumbai India or as Bombay_India,
Calcutta,India is now know as Kolkata,India,
有應該是最後作爲行之後沒有空格隔開字符串。
請讓我知道,如果它不明確。 謝謝
沒有第二個'xxx'在輸出的第二行從哪兒來的? – 2013-03-06 19:51:39
對不起,我編輯過它。 – par181 2013-03-06 19:53:29