Build, test, and debug regular expressions
This regex matches dollar amounts in a loose format, allowing groups of 1-3 digits separated by commas or periods (e.g., $1,000, $123.45, $1,000,000). It is useful for extracting or validating currency-like strings from text, especially when the exact format is unknown or inconsistent. The gm flags enable matching across multiple lines and all occurrences.