On Sunday 10 Apr 2011 14:05:49 cityuk wrote:
> Dear All,
> 
> This is more of a generic question on regular expressions as my
> program is working fine but I was just curious.
> 
> Say you have the following URLs:
> 
> http://www.test.com/image.gif
> http://www.test.com/?src=image.gif?width=12
> 

Don't use regular expressions to parse URLs - instead use URI.pm:

http://cpan.uwinnipeg.ca/dist/URI

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html

Electrical Engineering studies. In the Technion. Been there. Done that. Forgot
a lot. Remember too much.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to