Forum Moderators: open

Message Too Old, No Replies

You never knew matching a URL could be this hard.

O.O that's a long regexp.

         

adni18

6:55 pm on Jun 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



:D Just something I came accross the other day, a 107-line Regular Expression to match URLs amongst text.

It's crazy. :P

Edit: I think this belongs here, though it might belong in Foo.

AWildman

8:24 pm on Jun 23, 2006 (gmt 0)

10+ Year Member



107 lines reg ex? Dang! Someone musta needed every CONCEIVABLE base to be covered to do something like that. Can you imagine testing that bad boy?

adni18

1:35 am on Jun 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Already did. :P Well, I created a javascript port of that thing, but it's too big to post, and it seems to actually work!