Updated regex for matching links