Tags: perl5 Ähnliche Threads
a href="/seite1.html"
a href="/amp/seite1.html"
1 while($result =~ s!a href="/(.*?)"!a href="/amp$1"!gm);
2016-03-01T08:54:25 MuffiUnd warums schreibst dus dann in eine while-schleife?
$result =~ s!a href="/(.*?)"!a href="/amp/$1"!gm;
123
(Pseudocode)if $result !~ /amp/... { <regex>
1 2 3 4 5 6 7 8 9
$result =~ s#a\s+href="/ ( (?: (?!amp) . )*? ) \.html" #a href="/amp/$1.html"#xmg;