I don't understand the ? completely, but I think it's an option,
which mustn't be contained
this option is left out when matching http://www.blahcom
^[url]http://[/url] --> [url]http://[/url]
(www\.)? -->
.+ --> www
\. --> .
(.*) --> blahcom
and like I said, you just CAN'T distinguish between the 2 cases, so you have to make compromises
like [url]http://[/url](a group with a . at the end - once or twice)(2-3 chars, the tld)
sorry, I can't test it right now, due to technical probs
😃