figure out regex compile strategies