I hope you can help me with the following problem.
One of following example strings may be given:
aaa
<bbb>
aaa<bbb>
<bbb>aaa
aaa<bbb><ccc>
<bbb>aaa<ccc>
<bbb><ccc>aaa
I'm searching for a regular expression that matches to any of those possibilities:
aaa
<bbb>
<ccc>
What I've learned so far: With <.*?>
I can match the parts with the brackets, but the string "aaa" bothers me and I don't get it how to make this also a separate match.
Do you guys have any idea?
Thank you in advance for your appreciated help!
Best regards,
Rafael