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:
Can anyone see any obvious problems with it?
Code:
m|^http://(?:[a-z0-9-]+\.)?[a-z0-9-]+\.[a-z]+(?:\.[a-z]+)?$|iCan anyone see any obvious problems with it?