textBeforeForList
Modified on Fri, 18 Aug 2023
Description
Extract the text before a specified substring in each string of a list
Syntax
textBeforeForList(array, substring)
Parameters
Input Parameter | Type | Description |
---|---|---|
array | Array | The list of input strings to search within |
substring | string | The substring to find and extract text before |
Return value
Type |
---|
Array<any> |
Sample
Example | Result | Description |
---|---|---|
textBeforeForList(['1234$', '12.34$', '1234abc'], '$') | ['1234', '12.34', ''] | The list of text before the specified substring for string list |
To view all the List functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article