i have a string looking like this:
s = "asd[123]348dsdk[45]sdhj71[6789]sdfh"
i need an other string that contains the numbers in brackets like this:
s_filter = "123 45 6789"
Sorry for not posting my own ideas! i tried to use this:
s = "asd[123]348dsdk[45]sdhj71[6789]sdfh"
s_filter = s[s.find("[")+1:s.find("]")]
result: s_filter = "123"
But it only gives me the first numbers.
Any ideas?
Best, Hans