-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cookbooks/devel/transformations: docs update for {s.select}
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,18 +102,24 @@ Example: | |
### {s.select,index,separator} | ||
|
||
Return a field from PV value. The field is selected based on separator | ||
and index. The separator must be a character used to identify the | ||
fields. Index must be an integer value or a PV. If index is negative, the | ||
and index. | ||
|
||
Index must be an integer value or a PV. If index is negative, the | ||
count of fields starts from end of PV value, -1 being last field. If | ||
index is positive, 0 is the first field. | ||
|
||
The separator must be a character used to identify the fields. It can also be | ||
an escaped character: `\\`, `\t`, `\n`, `\r` or `\s` (all whitespaces). | ||
|
||
Example: | ||
|
||
``` | ||
Check failure on line 116 in docs/cookbooks/devel/transformations.md GitHub Actions / check-formatFenced code blocks should have a language specified
|
||
$var(x) = "12,34,56"; | ||
$(var(x){s.select,1,,}) => "34" ; | ||
$var(x) = "12,34,56"; | ||
$(var(x){s.select,-2,,}) => "34" | ||
``` | ||
|
||
### {s.encode.7bit} | ||
|
||
|