The text selection, if any, is automatically used to initialize the Search field of the Search tool. As a consequence, in some cases, you don't need to use the Search tool at all. For example, selecting some text in the document and then directly pressing Ctrl+G ( → ) is the quickest way to find the next occurrence of the selected text in the document. |
Type text to be searched in Search field or choose it from the menu of the combobox.
Change the search options as needed (see below).
Type Enter in the Search field or click on the button.
During the search session
click
on to skip found text,OR click on
to skip the element containing the found text.The search session can be stopped by
clicking on
,OR typing Esc (this also gives back the keyboard focus to the document view),
OR by simply clicking anywhere in the document view.
Type text to be searched in Search field or choose it from combo box menu.
Check the Replace toggle
Type replacement text in Replace field or choose it from combo box menu.
Change the search options as needed (see below).
Type Enter in the Search or Replace fields or click on the button.
During the search/replace session
click
on to skip found text,OR click on
to skip the element containing the found text.OR click
on to replace found text.OR click
on to replace all occurrences of searched text.The search/replace session can be stopped by
clicking on
,OR typing Esc (this also gives the keyboard focus back to the document view),
OR by simply clicking anywhere in the document view.
The search is case-insensitive. Example: "foo
" matches both "foo
" and "Foo
".
When "Ignore case" has been checked, "Regular expression" has not been checked and both the searched string and the replacement string contain only lower-case letters or the hyphen character (' Example: if you specify " Counterexample: if you specify " |
The found string must be a word, that is, the found string must be surrounded by white spaces. Example: "foo
" matches "foo
" but not "foobar
".
The searched string must be a valid regular expression. A regular expression is specified in a syntax similar to that used by Perl. See also http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html.
In such case, $1
, $2
, ..., $9
may be used in the replacement string to refer to the substrings matching the parenthesized groups of the regular expression.
$0
is replaced by the string matching the regular expression in its entirety. "$$
" may be used to quote character '$
'.
Examples:
"f(o+)
" matching "foo", replaced by "g$1
", gives "goo
".
"f(o+)
" matching "foo
", replaced by "$0bar
", gives "foobar
".
"f(o+)
" matching "foo
", replaced by "g$$1
", gives "g$1
".
Searching string "Hello world!
" in an XML document is not as obvious as it seems: for example, is "Hello world!
" with word "Hello
" contained in an emphasis element followed by text node " world!
" supposed to be found by XXE?
If this toggle is checked, the answer is yes. "Hello world!
" is found within "<em>Hello</em> world!
" but not within "<p>Hello </p><p>world!</p>
".
This mode uses the schema used to validate current document to recognize logically contiguous text across different types of elements.
If this toggle is not checked, the answer is no. Each text node is separated from other text nodes whatever the type of the element containing it.
This option is turned off by default, as it is rarely needed and also because it may cause the Search tool to fail in finding some strings for certain document types.
Search from the current caret position to the beginning of the document.
Search from the current caret position to the end of the document.
During the text search and/or replace operation (that is, temporarily), highlight all text spans matching the search criteria.
Restart the search from the beginning of the document when the end of the document has been reached. (If Direction is Down, restart the search from the end of the document when the beginning of the document has been reached.)