Question: Construct a regular expression to recognize currency in dollars. It is represented as a positive decimal number rounded to the nearest one-hundredth. Such numbers begin
Construct a regular expression to recognize currency in dollars. It is represented as a positive decimal number rounded to the nearest one-hundredth. Such numbers begin with the character $, have commas separating each group of three digits to the left of the decimal point, and end with two digits to the right of the decimal point. For example, $8,937.43 and $7,777,777.77. You may use finite closure.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
