-
1. Re: Export function ‘contains’
Stefan Reinhardt Jan 29, 2018 6:36 AM (in response to inuser287378)Hi Marc,
did you consider "StringIndexOf" for this? This may be the way. Here is the documentation:
Determines the first position at which a character or a character string appears in a text.
The position is based on 1, i.e. the first character has position 1, the
second position 2 etc. If the search text is not found, the result is -1.
Syntax:
{?StringIndexOf "Text", "Search text", Start position }
Text:
The text to be searched
Search text:
The text to be found
Start position:
(optional) Start position of the character after which the search in the text will begin.
If no value is specified, the search starts at the beginning.
Example:
{?StringIndexOf "Text-text-text", "x" } -> 3
{?StringIndexOf "Text-text-text", "X" } -> -1
{?StringIndexOf "Text-text-text", "text" } -> 6
{?StringIndexOf "Text-text-text", "text", 7 } -> 11