Match US Currency Amount

Published on Tue Mar 01 2022

Group 1 has dollar amount with or without commas, Group 4 has optional cents.

Additional matching regexes for
Match US Currency Amount

Match US Currency Amount

Group 1 has dollar amount with or without commas, Group 4 has optional cents.

Currency amount validation with sign (cents optional)

Allows Number: Currency amount US (cents optional) Can use US-style 123,456.78 notation Optional thousands separators; optional two-digit fraction; commas; dollar sign

Currency with dollar sign, two decimals, negative allowed, starting with period ok

Currency with dollar sign, two decimals, negative allowed, starting with period ok

Currency amount without currency symbol

Matches numbers that are likely to by financial amount. Does not consider the type of currency.

USD regex

Regex to match USD currency in a text

File name without extension from linux path

If given a linux file path match the filename without the extension. It extracts FileNameWithoutExtension into its own match group so that you can use it in things like Logstash Grok.

Match directory path

match with or without prevailing/trailing slashes

Better version of UK postcode

This UK postcode regex will match all variants of postcode formats including inner London postcodes (eg SW1A), with optional space (both AL11XP and AL1 1XP are valid) It will reject any postcode that does not specify a valid postcode area. Each part of the postcode is also captured into a capture group as follows: group 1: POSTCODE AREA group 2: POSTCODE DISTRICT group 3: POSTCODE SECTOR group 4: POSTCODE UNIT

Currency amount without currency symbol

Matching numbers related to financial amounts. Does not consider the type of currency. Will not match: --------------- 34 1.005 33,00 Will match: ----------- 00.40 1.40$ -6,663,330.00

Paystub Basic Salary

Extract Amount and Date from Paystub