functions:character_string_functions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| functions:character_string_functions [2019/12/26 14:17] – [$middle vs $between] benjamin | functions:character_string_functions [2022/02/20 20:55] (current) – benjamin | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| -**Character string functions** | -**Character string functions** | ||
| -[[functions: | -[[functions: | ||
| - | -[[functions: | + | -[[functions: |
| ------ | ------ | ||
| Line 17: | Line 17: | ||
| Usage description : $function(input-1 = " | Usage description : $function(input-1 = " | ||
| + | * Escaping Doublequotes: | ||
| + | * your string is: [this is my " | ||
| + | * in a function, you need to use it this way: ["this is my "" | ||
| + | * as you see, the string was wrapped into double quotes, just as any string inside functions. Additionally the real doublequotes in the string just have been doubled. | ||
| - | *** If you want to read and store an entire text file (xml, txt, etc), see [[others_functions# | + | *** If you want to read and store an entire text file (xml, txt, etc), see [[other_functions# |
| ===== $left vs $triml ===== | ===== $left vs $triml ===== | ||
| Line 41: | Line 45: | ||
| - | {{: | + | {{: |
| ------ | ------ | ||
| ===== $middle vs $between ===== | ===== $middle vs $between ===== | ||
| Line 68: | Line 72: | ||
| $proper(input string = " | $proper(input string = " | ||
| - | {{:playground: | + | {{:functions: |
| ----- | ----- | ||
| Line 85: | Line 89: | ||
| {{: | {{: | ||
| ----- | ----- | ||
| + | ===== $regreplace ===== | ||
| + | *$regreplace : Replace string in string by regex pattern. | ||
| + | |||
| + | Usage:\\ | ||
| + | $regreplace(input string =" | ||
| + | |||
| + | {{: | ||
| + | ------------- | ||
| ===== $leads vs $trails ===== | ===== $leads vs $trails ===== | ||
| Line 137: | Line 149: | ||
| All functions can be nested (functions within functions). | All functions can be nested (functions within functions). | ||
| + | |||
| + | __Example 1__: | ||
| + | $replace($left(" | ||
| + | |||
| + | __Example 2__: | ||
| + | $upper($triml($trimr(" | ||
| + | |||
| + | ------------------------------------------ | ||
| + | |||
| + | < | ||
functions/character_string_functions.1577369850.txt.gz · Last modified: 2020/11/16 19:08 (external edit)