added simple regexp memo