[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: Re: Mass change of MSWord special characters.
From: Joel Boonstra <jboonstra () gospelcom ! net>
Date: 2002-12-11 19:18:40
[Download RAW message or body]
On Tue, 10 Dec 2002, Piet Delport wrote:
<snip>
> > Based on my experimentations then, and a clue from a few folks, "\x" in
> > a regexp matches a character from the character class [0-9A-Fa-f], much
> > like \d matches a digit. Therefore, "\x92" would (I think) match any
> > valid hex digit, followed by a literal 9, then a literal 2.
>
> True, except that :substitute never sees the \x92. That's what the exec
> is for; the \x92 is replaced with a literal 0x92 char via the normal
> escaping mechanism of double-quoted strings, before being passed to the
> substitution command.
Wow, ok. That's pretty handy.
Thanks!
--
[ joel boonstra | jboonstra@gospelcom.net ]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic