reNumbersAndAmounts constant Null safety
Matches all numbers and amounts, including:
- numbers delimited with periods and or commas;
- single non-word prefixes and or suffixes such as currency symbols or % signs; and
- three-letter currency identifiers in any combination of upper-case letters. Prefixes and suffixes can include white-space between the pre-fix/suffix and the number.
Implementation
static const reNumbersAndAmounts = r'([^\w,.]?|[A-Z]{3})\s?'
'$reNumbers'
r'[\s]?(([^\w,.]?)|[A-Z]{3})';