On Thu, Apr 27, 2006 at 01:26:39AM +0200, Dr.Ruud wrote: > Chad Perrin schreef: > > Jay Savage: > > >> First, take Tom's advice: use a module. The docs for URI::URI are > >> pretty clear. If you need haelp figuring it out, post a question > >> here, and people will be happy to help. > > > > I would have recommended scrapping the idea of a regex and just using > > split() to pick out everything following the last slash in the URL, > > but in retrospect even that might run into limitations in some extreme > > edge-cases. That in mind, I agree: follow Tom's advice. He's > > contributed to a couple of the best Perl books on the market, after > > all: far more an expert than I. > > And if you really want to use a regex, see Regexp::Common::URI > http://search.cpan.org/search?module=Regexp::Common::URI
Hell, I did it again. Twice in one day. I accidentally replied to the individual rather than the list. What I was trying to say, in short, is that this basically follows Tom's advice as well: use a module. Usually, reinventing the wheel is bad. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] print substr("Just another Perl hacker", 0, -2); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>