in reply to Regular expression to check XML type
Your RE contains XML, the string you want to match contains xml and you haven't used the i (ignore case) modifier (see perlre).