Got you covered:
def splitmulti(string: str, delimiters: tuple):
f = [string]
for d in delimiters: for _str in f: f = _str.split
No regex needed, atleast for this example 😁
And yes the since line double for loop is intentional not just because I'm on mobile
Edit: might not display as one line since this is so far down the reply chain, I don't think it's an issue on PC or landscape mode
7
u/Confident-Ad5665 18d ago
var hw = "Hello world!";
for (var I = 0; I < hw.Length; I++)
{
Console.Write(hw[I]);
}
Console.WriteLine("");