regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Currency with dollar sign, two decimals, negative allowed, starting with period ok
Published on Tue Mar 01 2022
Currency with dollar sign, two decimals, negative allowed, starting with period ok
Regex
Test String
//OK TESTS 0.12 2,000,000.00 $1.23 $ 1.23 -1233 $ -123 $-123 .12 $ .12 $-.12 //NEGATIVE TESTS 12.123 3.3.3 .2.2. $$123.11 $12.$123 $ 123.2 .00.00 .0.0 ...0
Additional matching regexes for
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 with dollar sign, two decimals, negative allowed, starting with period ok
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
Simple Number
Verifies Number is a negative/positive number. Number may be a decimal, but if it is, it requires at least one number before and after the decimal place. Decimal numbers may also be negative or positive. Only 1 decimal place is allowed.
ZLNLB
Zero length negative lookbehind
USD regex
Regex to match USD currency in a text
Search needle by position
Searches for needle starting from an exact position
Domain from URL
Matches everything before after // or www and before a period. If needed, replace the matched elements with blanks.
Match US Currency Amount
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Simple Valid File Names
Simple file names. Special chars allowed (-_.) {3, 40}
Double dollar delimited centred LaTeX equation
Find all instances of a double dollar delimited centred LaTeX equation, for use with e.g. KaTeX