Text.PositionOfAny

Syntax

Text.PositionOfAny(text as text, characters as list, optional occurrence as nullable number) as any

Description

Returns the position of the first occurrence of any of the characters in the character list text found in the text value characters. An optional parameter occurrence may be used to specify which occurrence position to return.

Reference Data

https://docs.microsoft.com/en-us/powerquery-m/power-query-m-function-reference

Power Query M Functions / Text Functions / Text.PositionOfAny