Making regex more flexible.