stristr
Returns all of $haystack starting from and including the first occurrence of case-insensitive $needle to the end.
[...] = optional ... = your value
[var $... = ]call stristr $haystack=…;$needle=…[;$before_needle=…]
Notes
Returns the part of $haystack starting from and including the first occurrence of $needle to the end of $haystack
If $before_needle=1 the function returns the part of $haystack before the first occurrence of $needle (excluding $needle)
Example code
Example output
ReloadBefore needle
haystack = abcdefghijklm
needle = Hi
position = abcdefg
After needle
haystack = abcdefghijklm
needle = Hi
position = hijklm