I would like to match the following string:
[-ed, -ing, -ment <i>n.</i>]
But exclude:
[-ed, -ing, -ment <b>n.</b>]
And my regex is:
\[[\-,\s\.(<i>)(</i>)a-z]+\]
Which won't work.
I add brackets to <i>
so it appears as a whole, so <b>
wont be matched.
However, brackets inside square brackets don't seem to work.