I have this string
blabla [IC=\"test\"]Hello, [IC=\"testing\"] this is a nested tag [EC], cya.[EC] blabla
I\'m trying to match the outer [
[
Try this:
(\[IC="\w*"\].*\[EC\])
https://regex101.com/r/MVU9ni/1
Matches 0 or more characters that are located in between [IC="any_word_character_here"] and [EC].
[IC="any_word_character_here"]
[EC]