adding regex to find base url