看板 Perl 關於我們 聯絡資訊
我有個.h檔裡面有一行 #define ABC 1 可是我要怎麼把1改回0呢? 這樣不行,因為\0有意義 s/^#define ABC(\t*)1/#define ABC$1\0/ 這樣更冏 s/^#define ABC(\t*)1/#define ABC$10/ 還是有其他寫法? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.250.75.176 imce:轉錄至看板 RegExp 02/20 10:09