Process regex parameter.