in reply to Re: Re: Regular Expression Problem
in thread Regular Expression Problem

Have you tried using chomp to remove any trailing newlines? e.g. my $string = chomp($myinput);

Replies are listed 'Best First'.
Re: Re: Re: Re: Regular Expression Problem
by Anonymous Monk on Mar 29, 2004 at 16:26 UTC
    I got the solution for this problem
    I encoded the "&" on the url like "%26".
    After I coded this to do the translation
    if($name=~/(.*)&(.*?)/) { $name=~s/(.*)&(.*?)/$1%26$2/; print $name; } else { print $name; }

    Thank you for all your help!
Re: Re: Re: Re: Regular Expression Problem
by Anonymous Monk on Mar 29, 2004 at 15:24 UTC
    I think that problem starts even before.
    I have a link like:
    <a href=\"applic.pl?trans=edit&action=edit&name=$name>
    The value from the header isn't parsing the "&".