Hi, Eric Leenman wrote: > > I see that my the 'ASCII-layout' is not what it should be. > The command deletes all 200. > > How can I give the command to deleted only the 1st, 3rd, 5th, 7th, ect.. > 200? > And leaving (if any) the 2nd, 4th, 6th, ect.
%s/\<200\>\(\%(.\{-\}\<200\>\)\?\)/ \1/g this again replaces 200 with three spaces; if there is another 200 following with some text between them (this text can not contain a third 200, because of the non-greedy match forced by "\{-\}") we keep this 200 together with the interspersed text. > [snip] > >>> How do I deleted per line all the 'odd' 200? Now I understand. When I read this for the first time, I wondered what's so 'strange' about 200 -- I didn't think of 'odd' as the opposite of 'even'. > [snip] > >> use the 'g' flag of the substitute command: >> :%s/\<200\>/ /g > > [snip] Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin)