Replace link recongition's faulty regex.

Replaced the faulty regex in the link recognizer with a shorter one.