Regulary

Underground Cevela na oauh.cz
Pondělí Srpen 21 14:22:52 MEST 2000


Zkuste kombinaci:

$url = "http://www.novak.cz";
$text =~ s/(adresa)=($url)?(\/?)(.*)/\1=$url\/\4/;

Je to otestovane na prevod retezcu typu:

A)   adresa=http://www.novak.cz/neco.html
B)   adresa=neco.html
C)   adresa=/subdir/neco.html
D)   adresa=/subdir/subdir/neco.php?xxx&yyy

Under


Další informace o konferenci Perl