\zs means "begin the match here" so you can put it into a search term, and the term before \zs is used to position the match, but is not included within it.
the other end can be done, as well - anchoring the match at the end using \ze HTH Tom. On 20/03/07, Brian McKee <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All, Tim's recent post got me looking at \z I've read :h :syn-ext-match but it's gibberish to me at the moment Can someone break down how this suggestion works? > If you want to delete everything after the 2nd comma, you can use > :%s/,[^,]*,\zs.*/ I get the 'search the whole document for a comma followed by a not- comma followed by whatever then a comma' then ??? Comments appreciated Brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Verify this email or encrypt your email for free - see gnupg.org iD8DBQFF//HvGnOmb9xIQHQRAol2AKCRY7vY1tt/ZG8JvwkImqmBZR6XEgCeNIdI AdPSndCUCyha4bwhS0OpRZA= =VdFU -----END PGP SIGNATURE-----
