regexValidCurrency top-level constant

String const regexValidCurrency

Matches common currency strings with optional symbols and grouping.

Implementation

const String regexValidCurrency =
    r'^(S?S?|\W|Rp|\W|\W|\W|\W|fr|R\$|R)?[ ]?[-]?([0-9]{1,3}[,.]([0-9]{3}[,.])*[0-9]{3}|[0-9]+)([,.][0-9]{1,2})?( ?(USD?|AUD|NZD|CAD|CHF|GBP|CNY|EUR|JPY|IDR|MXN|NOK|KRW|TRY|INR|RUB|BRL|ZAR|SGD|MYR))?$';