Re: [問題] Vim 的 RegExp

看板Perl作者 (Kornelius)時間16年前 (2007/09/13 15:41), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
發現用 \V 可以把後頭的 pattern 當作 normal text 比對 ( very nomagic ) \v 則以 very magic 所以如果要 (foo|bar) 就不需 :%s/\(foo\|bar\)//g 了 可以這樣 :%s/\v(foo|bar)//g :h pattern ※ 引述《kornelius (Kornelius)》之銘言: : 因為 Vim 的 RegExp 很難用。 : 想請問 是否可以改為 Perl-Compatible 的 RegExp 呢? : 譬如說 : :%s{foo}{bar}g : 謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.116.167.126

09/14 10:30, , 1F
水喔
09/14 10:30, 1F
文章代碼(AID): #16wEcXa8 (Perl)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #16wEcXa8 (Perl)