regex bug modification