2
0
mirror of synced 2025-01-13 01:54:07 +00:00
2024-07-26 09:14:46 +02:00

14 lines
351 B
C#

namespace Utils
{
public static class Str
{
public static string Between(string input, string open, string close)
{
var openIndex = input.IndexOf(open) + open.Length;
var closeIndex = input.LastIndexOf(close);
return input.Substring(openIndex, closeIndex - openIndex);
}
}
}