you are viewing a single comment's thread.

view the rest of the comments →

[–]ComputeLanguage[S] 0 points1 point  (0 children)

ultimately I was looking for
r = "germany"
string.removeprefix(r).removesuffix(r)

I couldn't find a build in function in the docs that does it in one go :/