Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
#!/usr/bin/perl
use strict;
use warnings;
my $zusatz = 'http://www.example.com/perl.pl?';
my $string = '<a href="http://www.blabla.de">';
if ($string =~ /(<a href=")(.*)/) {
$string = $1.$zusatz.$2;
}
print "Ergebnis: '$string'\n";
So?Ergebnis: '<a href="http://www.example.com/perl.pl?http://www.blabla.de">'
#!/usr/bin/perl
use strict;
use warnings;
my $zusatz = 'http://www.example.com/perl.pl?';
my $string = '<a href="http://www.blabla.de">';
if ($string =~ /(<a.*href=")(.*)(".*>)/) {
$string = $1.$zusatz.$2;
}
print "Ergebnis: '$string'\n";
So müsste es doch auch gehen??
Schau mal hinten. Deine Lösung frisst vorne zuviel weg, deshalb fehlt hinten etwas.Ergebnis: '<a href="http://www.example.com/perl.pl?http://www.blabla.de'
<a title='das ist ein href="#" Anker' href="http://example.org">
<a href=http://example.org >
<a href='http://example.org'