toadi has asked for the wisdom of the Perl Monks concerning the following question:
got a url: http://www.my-website.be/gif/wwwtitle.gif
want the last part www.title.gif in a var.
I got:
where $img is the full url
are there better methods ???$naam = substr($img,rindex($img,"/") + 1);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Rexgrep
by btrott (Parson) on Apr 20, 2000 at 19:51 UTC | |
|
Re: Rexgrep
by ChOas (Curate) on Apr 20, 2000 at 19:56 UTC | |
by chromatic (Archbishop) on Apr 20, 2000 at 20:08 UTC | |
|
Re: Rexgrep
by snowcrash (Friar) on Apr 20, 2000 at 20:00 UTC | |
|
RE: Rexgrep
by guaguanco (Acolyte) on Apr 20, 2000 at 20:02 UTC | |
|
Re: Rexgrep
by perlmonkey (Hermit) on Apr 20, 2000 at 23:48 UTC | |
|
RE: Rexgrep
by flyfishin (Monk) on Apr 20, 2000 at 20:34 UTC | |
|
RE: Rexgrep
by Anonymous Monk on Apr 20, 2000 at 19:51 UTC | |
|
Re: Rexgrep
by dsb3 (Initiate) on Apr 22, 2000 at 02:37 UTC |