Use the /m modifier. This will treat the string as multiple lines, allowing you to use \n characters as part of your regexp.
See perlre for details and an example. Also, if you want to parse XML, you could look for a suitable module, it's usually a better way than to parse the file yourself using regexps.
Luke Jefferson
In reply to Re: regexp over multiple lines
by blindluke
in thread regexp over multiple lines
by liverpaul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |