getPrefixIgnoreCase()
Table of Contents
Overview
The getPrefixIgnoreCase() function returns all the characters which precede the first occurrence of searchText in the inputText. If the searchText is not found, this function returns null.
Note:
- This task performs a case-insensitive search. In order to perform a case-sensitive search, use the getPrefix built-in function.
- The size of each input and output parameter of this function can individually be up to 300 KB.
Return Type
- TEXT
Syntax
<variable> = <inputText>.getPrefixIgnoreCase(<searchText>);
(OR)
<variable>=getPrefixIgnoreCase(<inputText>,<searchText>);
Parameter | Data type | Description |
---|---|---|
<variable> | TEXT | Variable which will contain the returned characters. |
<inputText> | TEXT | The text from which all the characters preceding the searchText will be returned. |
<searchText> | TEXT |
|
Example
The following example searches for the text - AND in the inputText and returns its prefix.inputText = "Split the text and get prefix of \"and\"" ; newText = inputText .getPrefixIgnoreCase ( "AND" ) ; info newText ; // Returns "Split the text"