Speed up regex parsing of feature vectors