Full-time web dev; JS lover since 2002; CSS fanatic. #CSSIsAwesome
I try to stay up with new web platform features. Web feature you don't understand? Tell me! I'll write an article!
He/him
That bit of the regex will only match on a line that contains a dollar sign ($), a single digit ([0-9]), and a literal dot (\.). So "$2.99" will match, but "$12.99" won't, because there are two digits between the dollar sign and the dot.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's what this bit at the end is for:
That bit of the regex will only match on a line that contains a dollar sign (
$
), a single digit ([0-9]
), and a literal dot (\.
). So "$2.99" will match, but "$12.99" won't, because there are two digits between the dollar sign and the dot.