in reply to XML:Simple read tag value with regex

Your Perl code is probably fine, but that is not valid XML syntax. Use XML entity references (something like this):
<rule>['^(&lt;xyz&gt;)']</rule>