Changed regex that looks for version inserts + unit tests