Mike Blezien wrote:
> Hello,
Hello,
> I'm trying to extract an image name from the follow html tag
>
> $imageURL = ""
>
> now I need to extract the 'thebest_Small.png' filename from the img tag,
> but havent't been able to figure out how to do this correctly.
>
> i tried:
> $imageURL =~ !!;
>
On 2/8/06, Mike Blezien <[EMAIL PROTECTED]> wrote:
> this is what I ended up doing and it seems to work, unless you see a potiental
> problem with it:
>
> $imageURL =~ //;
> $audioimage = $1;
>
> this give the image filename i needed.
Cool! I'm glad you got it to work. And, so long as you don't m
this is what I ended up doing and it seems to work, unless you see a potiental
problem with it:
$imageURL =~ //;
$audioimage = $1;
this give the image filename i needed.
Mike
Tom Phoenix wrote:
On 2/8/06, Mike Blezien <[EMAIL PROTECTED]> wrote:
I'm trying to extract an image name from the
On 2/8/06, Mike Blezien <[EMAIL PROTECTED]> wrote:
> I'm trying to extract an image name from the follow html tag
> i tried:
> $imageURL =~ !!;
> $pic = $1;
>
> but that produces errors. what I'm doing wrong here ??
Your small error is forgetting that the question mark is a
metacharacter. S
The first thing that jumps out at me is that the '.*' pattern is
going to be a greedy match. This means it will match everything,
swallowing the '" BORDER=0> part of the string too. You can make the
* non-greedy by putting a '?' after it.
$imageURL =~ !!;
but you might be better off with
Hello,
I'm trying to extract an image name from the follow html tag
$imageURL = ""
now I need to extract the 'thebest_Small.png' filename from the img tag, but
havent't been able to figure out how to do this correctly.
i tried:
$imageURL =~ !!;
$pic = $1;
but that produces errors. what