Your RE contains XML, the string you want to match contains xml and you haven't used the i (ignore case) modifier (see perlre).
In reply to Re: Regular expression to check XML type
by Bloodnok
in thread Regular expression to check XML type
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |