fix regex generation for currencies