Given the following strings:
<i>aaa>
<i>aaa>>
<i>AAA>
<i>AAA>>
<i>999>
<i>9>
<i>>
<b>aaa>
<b>AAA>
I want to use regular expressions to match one or more final angle brackets > if the string contains <i> followed by some sequence of characters.
I have tried using the positive lookbehind: (?<=<i>[A-Za-z\d].*)>.* in order to ignore the <i> and some sequence of characters until the final bracket, but got the error * A quantifier inside a lookbehind makes it non-fixed width.
How to group the characters inside the positive lookbehind?