The price string to parse (e.g., "$1,234.56" or "1.234,56€")
Object with currency code, symbol, and numeric price, or undefined if invalid
parsePrice('$1,234.56')
// Returns { currencyCode: 'USD', price: 1234.56, currencySymbol: '$' }
parsePrice('1.234,56€')
// Returns { currencyCode: 'EUR', price: 1234.56, currencySymbol: '€' }
parsePrice('£99.99')
// Returns { currencyCode: 'GBP', price: 99.99, currencySymbol: '£' }
parsePrice('invalid') // Returns undefined
Parses a price string into a structured object containing currency information. Handles various price formats and number representations: