Menu

#148 Back references in search string

closed-invalid
nobody
Editing (61)
5
2011-08-04
2011-08-04
No

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?

Discussion

  • Peter B. West

    Peter B. West - 2011-08-04

    My mistake. Incorrect search string.

     
  • Peter B. West

    Peter B. West - 2011-08-04
    • status: open --> open-invalid
     
  • Ernie Rael

    Ernie Rael - 2011-08-04

    > 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.

     
  • Ernie Rael

    Ernie Rael - 2011-08-04
    • status: open-invalid --> closed-invalid
     

Log in to post a comment.