看板 Perl 關於我們 聯絡資訊
請問 若有一個test.txt檔 它的內容是這樣的 the keyword is *frequency* and the XXxXX... perl可以將frequency replace成time這個字嗎 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.121.67.223
KCda260:我是要replace兩個**之間的東西 wordpad ctrl+h應該不行 12/09 19:04
secobarbital:$str =~ s/\*\w+\*/*time*/; 12/09 19:07