My string looks like below. I want to get Completed from below string.
"Completed[TranslationTest]"
I want any text which is not in square bracket.
My string looks like below. I want to get Completed from below string.
"Completed[TranslationTest]"
I want any text which is not in square bracket.
Making some assumptions here, what type of chracters can be inside those brackets, but basically what you want is a something followed by positive lookahead group, like this: \w*(?=\[[\w\W]*\])