collection:Substrings_In
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| collection:Substrings_In [2015/07/14 04:49] – created peternlewis | collection:Substrings_In [2021/10/14 07:55] (current) – [Actions] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== For Each Substrings In RegEx Match ====== | ||
| + | |||
| The // | The // | ||
| You can look for matches in the System Clipboard, in a Named Clipboard, in a variable, or in a file. | You can look for matches in the System Clipboard, in a Named Clipboard, in a variable, or in a file. | ||
| - | You can scan for exact string matches, case insensitive string matches, or regular expression matches. | + | You can scan for exact string matches, case insensitive string matches, or regular expression matches, or (v10.0+) for strings separated by exact string matches, case insensitive string matches, or regular expression matches. |
| + | |||
| + | The result, stored in the [[action: | ||
| + | |||
| + | * the matched string: the For Each variable is set to the value of the matched string. | ||
| + | * the position of the match: the For Each variable is set to the position of the match (starting at 1). | ||
| + | * the range of the match: the For Each variable is set to the range (position, | ||
| + | |||
| + | For the range option, the variable contains the position and length with a comma between them, so you can use the normal variable array indexing to access the two numbers, eg if the For Each variable is theRange, then theRange[1] would be the position, and theRange[2] would be the length of the match. | ||
| + | |||
| + | Here's a practical example which superscripts all the numbers in the clipboard. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | ==== Actions ==== | ||
| - | The result, stored in the [[action: | + | * [[action: |
| + | * [[: | ||
collection/Substrings_In.1436849393.txt.gz · Last modified: by peternlewis
