<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">
    <dict>
        <key>Patterns</key>
        <array>
            <dict>
                <key>Identifier</key>
                <string>US_Currency</string>
                <key>Pattern</key>
                <string><![CDATA[
                    (?x)
                    [\$]                                        # require US currency $
                    [0-9]{1,3}                                  # 1 to 3 digits
                    (?:
                        (?:\d*) |                               # Either has no thousand's commas
                        (?:(,[0-9]{3})*|([0-9]{3})*)            # Or, 0 or more groups of thousands separators
                    )
                    (?:\.[0-9]{2})?                             # Optional .xx cents
                ]]></string>
            </dict>
        </array>
    </dict>
</plist>
