Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!noao!arizona!arizona.edu!penny.telcom.arizona.edu!paul From: paul@aqua.ccit.arizona.edu (Paul Sanchez) Newsgroups: comp.editors Subject: Re: VI question Message-ID: Date: 17 Apr 91 18:17:07 GMT References: <1991Apr16.234809.23553@massey.ac.nz> Distribution: world,local Organization: Systems & Industrial Engineering, U of AZ Lines: 9 Nntp-Posting-Host: aqua.ccit.arizona.edu In-reply-to: news@massey.ac.nz's message of 16 Apr 91 23:48:09 GMTLines: 9 how about :%s/\([A-Z][A-Z][A-Z][A-Z]\) \([A-Z][A-Z][A-Z][A-Z]\)/\1,\2/g by the way, you didn't specify what the separator was to be. this solution assumes blank, but if you want something else (or a set of things), put an appropriate subtitution for the blank above. e.g. - "." will match anything. [ ,:;] will match any of space, comma, colon, semicolon.