Hi,

when matching regular expressions with perl, backreferences will be
stored in $1 to $9. Does vim do anything similar? I have a script with
several lines like this

  if cline =~ '^\s*[._a-z0-9]\+\s\+\([-._a-z0-9]\+\)\s\+'
     ...
  endif

and I'd like to have the part which is in parantheses just like in perl.
  I could not find anything about backreferences in the vim manual.

Thanks in advance,
  Thomas

Reply via email to