ytjPerl has asked for the wisdom of the Perl Monks concerning the following question:
I basically know how to replace partial of string with designated characters. But I have trouble with the string containing special characters which pass to perl variable and which I only keep it as it is in perl. For instance, I have a web link as https://abc.abc:8080/abc?abcdef&abc=&egh?, I am intending to replace abc.abc:8080 as def.def and keep the rest of it as it is, so the link would be https://def.def/abc?abcdef&abc=&egh?
Is there a way to do it ?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replace characters in link
by haukex (Archbishop) on Dec 11, 2018 at 15:43 UTC | |
by ytjPerl (Scribe) on Dec 11, 2018 at 15:56 UTC | |
by haukex (Archbishop) on Dec 11, 2018 at 16:01 UTC | |
|
Re: replace characters in link
by hippo (Archbishop) on Dec 11, 2018 at 16:50 UTC | |
by Anonymous Monk on Dec 11, 2018 at 23:00 UTC | |
by pryrt (Abbot) on Dec 11, 2018 at 23:05 UTC |