Updated regex for version insert check.