I'm trying to match XML entries where the link doesn't correspond to the link text, like this:
<link linkend="G431">X595</link>
but NOT links where the link text is correct, like this:
<link linkend="G431">G431</link>
How can I write a vim regex to match the first of those? I've tried things like:
linkend="\([A-Z]\d\+\)">[^\1]
and
linkend="\([A-Z]\d\+\)">^\(\1\)\@!
but I can't quite seem to get anything to work. Basically I'm trying to say "find a link where the link text does NOT equal the link location."