Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
my ($version,$encode);
if (m/<?xml\s+version="([^"]+)"\s+encoding="([^"]+)"/) {
($version,$encode) = ($1, $2);
print "$version\|$encode\n";
} else {
print "No match!";
}
my ($version,$encode);
if (m/<[COLOR=red]\[/color]?xml\s+version="([^"]+)"\s+encoding="([^"]+)"/) {
($version,$encode) = ($1, $2);
print "$version\|$encode\n";
} else {
print "No match!";
}
Why do you need to match it?shlomyb said:What about the "?>" at the end ...