in reply to Re^2: Problem with Regex
in thread Problem with Regex

 $raw_text =~ /<$tag>{1}(.*)(<\/$tag>){1}/s;

Try this, the 's' at the end modifies '.' to also match line endings and is guaranteed to work with 5.8.

By the way, your pattern only works if this tag only occurs once in your string. Otherwise using (.*?) instead of (.*) will at least allow you to find the first occurence. The difference is that .* tries to find the longest possible string while .*? will get the shortest.