作者KCda260 (KCda260)
看板Perl
標題[問題] 代換字串
時間Sun Dec 9 18:58:13 2007
請問
若有一個test.txt檔
它的內容是這樣的
the keyword is *frequency* and the XXxXX...
perl可以將frequency replace成time這個字嗎
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.121.67.223
1F:→ KCda260:我是要replace兩個**之間的東西 wordpad ctrl+h應該不行 12/09 19:04
2F:推 secobarbital:$str =~ s/\*\w+\*/*time*/; 12/09 19:07