add regex version