B
Börni
Hi
This is probably very easy, but I don't get it.
Example:
#!perl -w
use strict;
my $string = '<meta name="Keywords" content="" lang="fr">';
my ($keywords) = $string =~ /.*?meta name="Keywords".*?content="(.*?)">/;
print "[$keywords]\n";
exit 0;
In the Example above I'd expect $keywords to be empty. Instead it is ["
lang="fr].
What is the correct expression to match everything
<meta name="Keywords" content="-->IN HERE<--" lang="fr">
even when it's empty?
Regards Bernard
This is probably very easy, but I don't get it.
Example:
#!perl -w
use strict;
my $string = '<meta name="Keywords" content="" lang="fr">';
my ($keywords) = $string =~ /.*?meta name="Keywords".*?content="(.*?)">/;
print "[$keywords]\n";
exit 0;
In the Example above I'd expect $keywords to be empty. Instead it is ["
lang="fr].
What is the correct expression to match everything
<meta name="Keywords" content="-->IN HERE<--" lang="fr">
even when it's empty?
Regards Bernard