Hi
I have problem to get data from tag (eg: <TEXT></TEXT>).
For example the string is like this:
$string = "<TEXT>
Some text
</TEXT>";
if($string =~ /<(TEXT)>\s*(.*)\s*<\/\1>/g)
{
$result = $2;
print $result, "\n";
}
It works fine, but if the string is like this:
$string = "<TEXT>
Some text
Another text
</TEXT>";
I got nothing.
Thanks in advance.