https://learn.microsoft.com/ru-ru/dotnet/api/system.string.lastindexofany?view=netframework-4.8.1&viewFallbackFrom=net-9.0
String.LastIndexOfAny Method (System) | Microsoft Learn
Reports the zero-based index position of the last occurrence in this instance of one or more characters specified in a Unicode array. The method returns -1 if...
stringmethodsystemmicrosoftlearn