i have a string like that:
[variable = value][variable2=value2][Some text inside]
I need to make a Regular Expression that can give me matches as groups, so in my MathCollection I should have
matches[0] = [variable = value]
matches[1] = [variable2=value2]
matches[2] = [Some text inside]
Can somebody to help me?
Thanks in advance.
Something like this:
http://regexr.com?2trpv