[SATLUG] searching for a hexvalue with vi

Borries Demeler demeler at biochem.uthscsa.edu
Thu Dec 20 22:33:37 CST 2007


> 
> 
> Borries Demeler wrote:
> >>
> >> Great, I am glad you have solved it.
> >>
> >> I would have suggested searching for non-standard ascii characters.
> >> s/[^ -~]//g
> >>
> >> Search for a space through a tilde and replace it with nothing.
> >
> > That gets rid of everything.
> 
> The sentence was wrong but I believe that the Regular Expression is
> correct.  I should search for everything NOT from a space to a tilde and
> then replace it with nothing.  I should find NOT a-z or A-Z punctuations
> and special characters.  The first character, "^" means NOT.

Luis,

You are correct. I must have typed something wrong. I tried it again and 
sure enough, it worked also!

Thanks a bunch, -Borries


More information about the SATLUG mailing list