Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The replace works but the ? still stays there How can i get this replaced? I cannot exclusively replace the ? since there are other instances which I dont want to replace. Is there a way to get around it? Thanks$temp1='http://test.com/web/main?'; $temp2='https://test.com/web1/test1'; $proc_string =~ s/$temp1/$temp2/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String Replace
by moritz (Cardinal) on Jun 17, 2009 at 18:06 UTC | |
|
Re: String Replace
by gwadej (Chaplain) on Jun 17, 2009 at 18:07 UTC | |
|
Re: String Replace
by kennethk (Abbot) on Jun 17, 2009 at 18:06 UTC | |
by Anonymous Monk on Jun 17, 2009 at 18:24 UTC |