Fixed url regex to match only valid urls better.