strBeforeLast(text,toFind,origIfNotFound)¶
Definition¶
String strBeforeLast(String text, String toFind, Boolean origIfNotFound)
Description¶
Returns the portion of a string before the last occurence of a delimiter. If the delimiter is not found, then return either the original string or null depending on the origIfNotFound param.
Parameter Definition¶
Name | Type | Description |
---|---|---|
text | String | The base string to get a substring from |
toFind | String | the delimiter to find |
origIfNotFound | Boolean | If the toFind parameter doesn't exist in the text: then return text if true or null if false |