updated regex for links