Back references in search string
Brought to you by:
err
It appears that back-references in search strings are not supported. I'm trying to find instances of attribute-only elements with a full terminating tag, e.g.
<el att1=.. att2=..></el>.
I use (in NetBeans)
g/\(\(<[^> ]*\)[^>]*\)><\/\2/p
and get nothing back. (I initially had a g//s// command, but reduced it to troubleshoot.)
Is the use of back-references in the search text not supported?
My mistake. Incorrect search string.
> My mistake.
Whew! Glad to hear that.
Not that you made a mistake, but ... you know what I mean. ;-)
BTW, in case you didn't know. It is java syntax (mostly like perl), not vim, for example positive/negative lookahead/behind assertions. And there's that meta-escape option.