NYCPHP Meetup

NYPHP.org

[nycphp-talk] regexp for URLs (is this correct?)

Adam Maccabee Trachtenberg adam at trachtenberg.com
Mon May 3 15:58:36 EDT 2004


On Mon, 3 May 2004, James B. Wetterau Jr. wrote:

> His is a little out of date.  He's missing some of the new TLD's e.g.
> .museum.

That's probably true, but it's easy to tack on new TLDs.

> OTOH, I didn't check if the URL that ate Toledo handled the new TLD's
> either.

Most regexen just check that the TLD is something like [a-zA-Z]{2,}

-adam

-- 
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!



More information about the talk mailing list