Updated regex to include relative URLs