Complete captureThreeNumbers(), matchesPattern() and isUSD().