Home : General : Perl Programming :

General: Perl Programming: URL regex: Edit Log

Here is the list of edits for this post
URL regex
I don't want to start off another of those regex wars but I was trying to come up with something to match URL's properly, or at least to a certain degree....this is what I came up with:

Code:
m|^http://(?:[a-z0-9-]+\.)?[a-z0-9-]+\.[a-z]+(?:\.[a-z]+)?$|i

Can anyone see any obvious problems with it?

Last edited by:

Paul: Aug 8, 2002, 6:44 AM

Edit Log: