User Tools

Site Tools


action:Search_and_Replace_Variable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
action:Search_and_Replace_Variable [2016/11/21 18:51]
JMichaelTX [Forum]
action:Search_and_Replace_Variable [2017/09/07 06:01] (current)
peternlewis
Line 1: Line 1:
-The Search and Replace Variable ​action ​allows you to search a variable for text and replace the found text.+~~REDIRECT>​action:​Search_and_Replace~~
  
-{{:​action:​searchreplacevariableaction.png|}} 
- 
-You can search for: 
-  * Strings, matching the case. 
-  * Strings, ignoring the case. 
-  * Regular Expression, matching the case. 
-  * Regular Expression, ignoring the case. 
- 
-Select the variable to search using the //Search variable// pop-up. 
- 
-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, calculations,​ clipboards and other tokens to enter in the text area. 
- 
-Examples: 
-  * Search for a string such as Monday and replace with Tuesday. 
-  * Use a regular expression to search through a list of names where the last name appears first and switch them to be First Name Last Name. In its simplest form this could look like the following: 
- 
-Search for: (.+) (.+) 
-Replace with: $2 $1 
- 
-{{:​action:​searchreplacevariable.png|}} 
- 
-Which results in: 
- 
-{{:​action:​searchreplaceclipboardresult.png|}} 
- 
-===== See Also ===== 
- 
----- 
- 
-=== Actions === 
- 
-* [[action:​Search Clipboard|Search Clipboard]] 
-* [[action:​Search Variable|Search Variable]] 
-* [[:​Actions|See all Actions]] 
- 
----- 
- 
- 
-==== Documentation ==== 
- 
-* [[:Regular Expressions|Regular Expressions]] 
- 
-==== Forum ==== 
- 
-- [[https://​forum.keyboardmaestro.com/​t/​extracting-substring-of-a-variable/​3007/​2|Extracting substring of a Variable]] 
- 
-- [[https://​www.google.com/​search?​q=site:​forum.keyboardmaestro.com+Search+Replace+Variable|Keyboard Maestro Forum topics about Search and Replace Variable]] 
action/Search_and_Replace_Variable.txt ยท Last modified: 2017/09/07 06:01 by peternlewis