Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
- Posts: 89
- Joined: Wed Feb 09, 2005 8:57 am
Suppose I have this XML document opened in Text mode
Code: Select all
<e bar="foo bar" />
<e bar="bar baz" />
<e baz="baz qux" />
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:
- Find: ^b.*
- XPath: @bar
- Enable [Regular expression]
- Enable [Enable XML search options] and [Attribute values]
But nothing's found. Looks like '^' in the regular expression doesn't work.
What's the correct syntax to accomplish the task?
- Posts: 2576
- Joined: Tue May 17, 2005 4:01 pm
This doesn't work because Oxygen always treats "^" as the line start, not a region start.
You can work around this with zero-width negative lookbehind:
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger