作者: Bunta | |
日時: 2008/9/03(22:15) |
------------------------------ \Z end of string, or before newline at the end \z end of string (oniguruma.docより) ------------------------------ ------------------------------ C:\>echo abc|onigsed -R "s/..(.)\z/\1/" c C:\>echo abc|onigsed -R "s/..(.)\Z/\1/" c C:\>echo abc|onigsed -R "G; s/..(.)\z/\1/" abc C:\>echo abc|onigsed -R "G; s/..(.)\Z/\1/" c ------------------------------ 上の結果は正しくなさそうに思えるのですが、よく分かりません。(^^;ゞ Bunta