en:autorun:documentation:strpos
StrPos
StrPos(<str>, <substr> [, <occurence> [, <offset>, [<casesense>]]]) StrPos [/S] <VAR> <str> <substr> [<occurence> [<offset>]]
Returns the position of a substring in a source string.
Parameters
str | Source string. |
substr | The substring to find in the string. |
occurence | Optional. The entry of the search string. The default is 1. If the value is negative, the search will start from the end of the string. |
offset | Optional. The position from which the search will start. |
casesense | Optional. Case-sensitive search (for a function). |
Return value
If successful, the function returns the position of the found substring. If the substring is not found, or if the string or substring is empty, the function returns 0.
Switches
/S | Case-sensitive search (for command). |
en/autorun/documentation/strpos.txt · Последнее изменение: 2022/09/25 18:05 — loopback