> Of the regular season, as you know, not designed for parsing nested structures.
Actually, the theory tells us that the same powerful grammar BBCodes regular season can't win.
But this does not mean that the regular season in this problem generally can not be used.
(have a look at parsers of popular forums, for example)
Briefly, in one passage matchim the most deeply nested tag pair and replace something, they do not contain repeated in a loop until there is a match.