Regulary

Vladimír Fux fux na infoline.cz
Neděle Srpen 20 15:03:18 MEST 2000


Diky

Tohle jsem zkusil a chodi to:

> $text =~s/(adresa=)(?!\Q$url\E)/\1$url/gi;

O lookahead jsem nevedel nic, a je to presne to, co jsem
potreboval. Diky Honzovi a Michalovi

Tohle jsem zatim nezkusil, ale verim, ze bude fukcni taky:

> $text =~ s/(adresa)=($url)?(\/?)(.*)/\1=$url\/\4/;

Akorat jsem zatim u teto druhe varianty od Undergrounda
neprisel na to, co znamena cast vyrazu
 ?(V?)

Muzete mi to jeste priblizit? Diky

Vladimir





Další informace o konferenci Perl