Correctly match several digits in link conversion