Loading ...
Sorry, an error occurred while loading the content.

Re: match() problem

Expand Messages
  • Srinath Avadhanula
    Hi, Please do not mind me. I am a stupid idiot. I was doing this at 3am after working on my thesis for several hours... :( Sorry for the line noise. Srinath
    Message 1 of 4 , Mar 31, 2006
    • 0 Attachment
      Hi,

      Please do not mind me. I am a stupid idiot. I was doing this at 3am
      after working on my thesis for several hours... :(

      Sorry for the line noise.

      Srinath

      On 3/31/06, Bram Moolenaar <Bram@...> wrote:
      >
      > Srinath Avadhanula wrote:
      >
      > > I am not sure if I am doing this wrong. In the following three situations:
      > >
      > > =09:echo matchlist("_This is something_", '^\(.\)\(.*\)\1')
      > > =09:echo matchlist("[This is something]", '^\(.\)\(.*\)\1')
      > > =09:echo matchlist("{This is something}", '^\(.\)\(.*\)\1')
      > >
      > > only the first case works. Basically, as soon as the back-reference is a
      > > special regexp character, things do not match.
      >
      > When you use "\1" it matches with exactly the same character, thus
      > [This is something[
      >
      > --
      > So when I saw the post to comp.editors, I rushed over to the FTP site to
      > grab it. So I yank apart the tarball, light x candles, where x= the
      > vim version multiplied by the md5sum of the source divided by the MAC of
      > my NIC (8A3FA78155A8A1D346C3C4A), put on black robes, dim the lights,
      > wave a dead chicken over the hard drive, and summon the power of GNU GCC
      > with the magic words "make config ; make!".
      > [Jason Spence, compiling Vim 5.0]
      >
      > /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      > /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      > \\\ download, build and distribute -- http://www.A-A-P.org ///
      > \\\ help me help AIDS victims -- http://www.ICCF.nl ///
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.