Hello,
I am working on a assignment and I need to write a Regular expression that meet the following criteria.
A floating-point literal (FPL) consists of two non-empty strings of ASCII digits separated with a period. The second string is optional. Leading zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7 are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are legal constants.
Thanks for the help!!
I am working on a assignment and I need to write a Regular expression that meet the following criteria.
A floating-point literal (FPL) consists of two non-empty strings of ASCII digits separated with a period. The second string is optional. Leading zeros are not allowed in the first string, that is, 01.0, 002.0, .0, .7 are examples of illegal constants; 0.0, 0.00, 0.010, 0., 1., 880. are legal constants.
Thanks for the help!!