> For the complete documentation index, see [llms.txt](https://money2.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://money2.onepub.dev/creating-money/currencies.parse.md).

# Currencies.parse

This method is extremely useful if you have a database/list of monetary amounts that contain their currency ISO code. 'Currencies.parse' will create a `Money` instance of the correct currency based on the currency code embedded in the monetary amount.

An exception will be thrown if the monetary amount does not include a known currency code.

Before you can use `Currencies.parse` you need to ensure that all of the imported currencies are included in [Common Currencies](/common-currencies.md) or you have [registered ](/registering-a-currency.md)any additional currencies

If you try to create a `Money` instance for an unregistered `Currency` an `UknownCurrencyException` will be thrown.

```dart
import 'package:money2/money2.dart';

test('parse with Currency', () {
        Currencies().parse(r'$USD10.25', pattern: 'SCCC0.0');
        Currencies().parse('JPY100', pattern: 'CCC0');
});
```
