On Mon, 2008-08-11 at 14:02 -0700, Saya wrote:
> Hi,
> 
> I have the following issue:
> 
> my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/
> web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/
> birthday/main.html','bday-pics',785,460);"
> 
> Now I want $s to be like: "/metadata-files/test-desc.txt,/metadata-
> files/birthday.txt,/web-media/images/bday-after-help.jpg,/pop-ups/
> birthday/main.html"
> 
> I have been working with:
> 
> $s =~ s/javascript:popup\('(.*)',(.*)/$1/gi;

$s =~ s/javascript:popup\('([^']*)',(.*)/$1/gi;


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to