fixed NSRegularExpression memory hog problem