Regex for links
Posted: Mon Sep 27, 2010 5:32 am
I have this regex:
'#(([a-zA-Z0-9-]+)\.)*([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)#'
which is good, except that it doesn't get links with a directory behind like:
domain.com/directory
How to solve this?
'#(([a-zA-Z0-9-]+)\.)*([a-zA-Z0-9-]+)\.([a-zA-Z0-9-]+)#'
which is good, except that it doesn't get links with a directory behind like:
domain.com/directory
How to solve this?