NYCPHP Meetup

NYPHP.org

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

James B. Wetterau Jr. james at surgam.net
Mon May 3 15:32:52 EDT 2004


Adam Maccabee Trachtenberg says:
 > On Mon, 3 May 2004, Jayesh Sheth wrote:
 >
 > > Any suggestions or corrections?
 >
 > I trust Jeff Friedl's regex. He wrote "Mastering Regular Expressions"
 > for O'Reilly and works at Yahoo!
 >
 > http://www.regex.info/listing.cgi?ps=208
...

His is a little out of date.  He's missing some of the new TLD's e.g. 
.museum.
For example, check out this cool URL (as the Netscape mailto default
subject used to say):
http://musedoma.museum/musedoma.html

There's a .name, and .coop, and .aero, and others, too.

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





More information about the talk mailing list