Extended Replace
This section may contain incomplete, premature, or mistaken information, prone to change without notice.
Control page Control:feature:Extended Replace
Extended Replace.. (Alt+Ctrl+R)
Searches for all occurrences of a specified Find what phrase within the selection and replaces them with Replace with phrase.
Use Match case option to make the search case-sensitive
.
Use Whole words option to restrict the search to only those matches, which start and end at word boundaries. Note that the match itself might contain non-word characters
, since only the boundaries of a match are checked. Therefore, the last character before the match and the first character after the match may not be word characters
; while the first character and the last character of the match must be word characters
.
Use RegExps option to #########################
Use Mimic case option to #########################
Note: Newlines and Tab characters can be used in Find what and Replace with fields freely. Moreover, each newline from the Find what field matches any kind newline in the document (Win/Unix/Mac), and each newline from the Replace with field is converted to the current newline type (as shown in the Status Bar for example) upon replacing.
Note: This tool is prefered to the standard Replace All mechanism from the Find Bar in many cases. Its search is done in more feasible way and the replacing routine works much more faster and uses much less resources. Furthermore, the selection ensures, that the replacing is done only in the desired part of the text. And finally, one Undo step covers all replacements together, instead of grouping many small separate replacements. Although this may not be directly apparent, it is incomparably better to have one big Undo step instead of too many small Undo steps. On the other hand, if you expect only a handful of matches and replacements in a big big document, the old good looping Replace All routine might come more handy.