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