Find/Replace: Regular expression and XML-aware mode
Posted: Thu Nov 17, 2016 8:20 pm
Suppose I have this XML document opened in Text mode
and want to find and highlight the value of @bar that starts with 'b'; namely "bar baz" of the 2nd @bar.
I opened the Find/Replace dialog and set these options:
What's the correct syntax to accomplish the task?
Code: Select all
<e>
<e bar="foo bar" />
<e bar="bar baz" />
<e baz="baz qux" />
</e>
I opened the Find/Replace dialog and set these options:
- Find: ^b.*
- XPath: @bar
- Enable [Regular expression]
- Enable [Enable XML search options] and [Attribute values]
What's the correct syntax to accomplish the task?