Yes.
$xml = '<string>Everyone knows that 1 < 2</string>';; print $xml =~ m[>([^<]+)</string>]sm;; Everyone knows that 1 < 2
From the spec:
The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings "&" and "<" respectively.
In reply to Re^3: Help extracting text from XML data
by BrowserUk
in thread Help extracting text from XML data
by perlnewb123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |