regex method now explicitly returns an NSMutableDictionary