##
pseudocode
----------
$aXML =~ s@`@@gs;
while ( commands remain unprocessed )
{
foreach match for
{
substitute for <`any_command>
set found_command boolean flag true
}
if (found_command)
{
while ( find match for <`command>data )
{
process if (
no nested ` chars found
)
}
}
}
## ##
foo
####
bar