Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
The huge OR statement in the regular expression is not needed ( com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|m useum|travel|), and is inadequate. I already see several that are missing, and after all, you never know when new top-level domains will be added.
Here's the one I last used:
Code:
@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
|