- ⌂ Text
- Directives
#STRSTR
Return a portion of an input string starting from the first occurrence of a substring to the end of the input string.
Prototype
#STRSTR($haystack, $needle)
Parameters
- haystack - The string to search in.
- needle - The string to search for.
Return
Returns part of haystack string starting from and including the first occurrence of needle to the end of haystack.
Example
#/ Substring: some text.
#LOCAL($Text, "This is some text.")
Substring: #STRSTR($Text, "some")
#/ Substring: щный курс
#ASSIGN($Text, "Мощный курс")
Substring: #STRSTR($Text, "щн")