The regular expression posted below is used to pick up URLs, including ones in the format such as example.com
. However, I want it only to pick up on URLs that have a www.
or http
, https
, etc. in the front. In other words, it should pick up www.example.com
. It should not pick up example.com
.
((((ht|f)tp(s?))\://)?((www.|[a-zA-Z])([a-zA-Z0-9\-]+\.)([a-zA-Z]{2,8}))(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\;\?\'\\\+&%\$#\=~_\-]+))*)