Documentation
-
Learn more about: Text.At
-
Learn more about: Text.PadEnd
-
Learn more about: Text.Select
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Text.PositionOfAny(text as text, characters as list, optional occurrence as nullable number) as any
Returns the first position of any character in the list characters
that is found in text
. An optional parameter occurrence
may be used to specify which occurrence position to return.
Find the first position of "W" or "H" in text "Hello, World!".
Usage
Text.PositionOfAny("Hello, World!", {"H", "W"})
Output
0
Find all the positions of "W" or "H" in text "Hello, World!".
Usage
Text.PositionOfAny("Hello, World!", {"H", "W"}, Occurrence.All)
Output
{0, 7}
Documentation
Learn more about: Text.At
Learn more about: Text.PadEnd
Learn more about: Text.Select