update regex for midsize urls