fixed the regex so that all sub-domains are recognized properly as internal links