Changes

no edit summary
Line 1: Line 1: −
This action can be used to perform basic string manipulation on a text string.
+
This action can be used to perform basic string manipulation on a text string.<br/>
 +
<br/>'''Substring'''<br/>
 +
Returns a sub-section of the text defined by the supplied start and end indexes. The first character starts at index 0 and the last index is excluded. (To get the first character use values 0 and 1.)
 +
<br/>'''Example Usage'''<br/>
 +
"hello i am using macrodroid app"<br/>
 +
To obtain the word Macrodroid we will use the initial position 17 and last position 27 and as a result we will have the value "Macrodroid".<br/>
 +
<br/>'''Replace all'''<br/>
 +
Uses a regular expression to replace matching text with the supplied new text.<br/>
 +
'''Example Usage'''<br/>
 +
Source text = Hello, how are you?.
 +
<br/>
 +
the text to replace is "hello".<br/>
 +
the new text is "hi"<br/>
 +
The end result will be, "hi, how are you?".
 +
 
 +
<br/>'''Extract text'''<br/>
 +
Uses a regular expression to match and extract a section from the text.<br/>
 +
<br/>'''Upper case'''<br/>
 +
Converts the text to all upper case characters.<br/>
 +
<br/>'''Lower case'''<br/>
 +
Converts the text to all lower case characters.<br/>
 +
<br/>'''Trim whitespase'''<br/>
 +
Removes any leading/trailing whitespace from the text.
editors
1,590

edits