Regex · US currency · Free
US currency regex.
Matches a US dollar amount with optional thousands separators and cents. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/\$\d{1,3}(?:,\d{3})*(?:\.\d{2})?/g
✓ Matches
$1,000$42.50$9✗ Doesn't match
1000$USD 5Need a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →