Given the following string: be_de=Interessant für Dich; be_fr=Intéressant pour toi;
What is the nicest way to extract the substring for a given locale in Kotlin? e.g. I have given the locale be_fr I want to have Intéressant pour toi as a result. The string is always in between the locale followed by a = and a ;
There could be more locales with strings given, and the position of the value to extract always varies.
Of course I could just create a substring after the first index of my locale and then search for the fist index of the semicolon, but I assume there is a more elegant way like using removeSurrounding, which I can't think of atm.