This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
action:Search_and_Replace [2019/07/01 01:10] peternlewis |
action:Search_and_Replace [2021/10/14 04:01] peternlewis |
||
---|---|---|---|
Line 15: | Line 15: | ||
Select the kind of search to run, from the //using// pop-up. Then enter the text to search for in the text area. | Select the kind of search to run, from the //using// pop-up. Then enter the text to search for in the text area. | ||
- | Enter what to replace the found text with in the //and replace with// text area. Use the arrow at the right of the text area to select variables, clipboards and other tokens to enter in the text area. | + | Enter what to replace the found text with in the //and replace with// text area. Use the arrow at the right of the text area to select variables, clipboards and other tokens to enter in the text area. |
For regular expressions, the replacement can refer to capture groups using either `$1` or `\1` notation (eg `%Calculate%CHARACTERS(\1)%` would be the count of characters in the first capture match (v8+)), or named capture groups (using `(?<name>...)` with the notation `${name}`. | For regular expressions, the replacement can refer to capture groups using either `$1` or `\1` notation (eg `%Calculate%CHARACTERS(\1)%` would be the count of characters in the first capture match (v8+)), or named capture groups (using `(?<name>...)` with the notation `${name}`. | ||
Line 22: | Line 22: | ||
Select where you want the result to be saved (back to the source, or to some other variable or clipboard or file). | Select where you want the result to be saved (back to the source, or to some other variable or clipboard or file). | ||
+ | |||
+ | Using the action (gear) ⚙ menu, you can select (v10.0+) to replace all, or only the first or last match. | ||
Examples: | Examples: | ||
Line 40: | Line 42: | ||
=== Actions === | === Actions === | ||
+ | * [[action:Search_using_Regular_Expression|Search using Regular Expression]] action | ||
* [[:Actions|See all Actions]] | * [[:Actions|See all Actions]] | ||