move regex stuff to own function
allow regex expressions in itemtype-specific objects