I want to match a String which looks like this:
[lang_de]Hallo![/lang_de][lang_en]Hello![/lang_en]HeyHo[lang_es]Hola![/lang_es]
I want the matching to return true if there is text which is not enclosed by lang_tags (in this example: HeyHo
). It could also be positioned at the beginning or end of the string.
Whitespace should NOT match, e.g. [lang_de]Tisch[/lang_de] [lang_en]Table[/lang_en]
should not cause a match.
I can't use lookahead or lookback, because MySQL doesnt seem to support this.
Any Suggestions?