I'm currently using this regex but can figure out how to get the text group to combine its result.
String: Text 1^%+{TAB}({CMD 1}{CMD 2})Text 2.^(abc)
Regex: (?<special>[\^+%]*?[\(][^)]*[\)])|(?<special>[\^+%]*?[\{][^}]*[\}])|(?<text>.)
Result:
text: T
text: e
text: x
text: t
text:
text: 1
special: ^%+{TAB}
special: ({CMD 1}{CMD 2})
text: T
text: e
text: x
text: t
text:
text: 2
special: ^(abc)
Wanted:
text: Text 1
special: ^%+{TAB}
special: ({CMD 1}{CMD 2})
text: Text 2
special: ^(abc)
Ultimately I want "Text 1" and "Text 2" to be two groups in the text group. Can't seem to get the text group not to interfere with the special group when adding .*?(..) for the life of me.