3.
|
Suppose
that in some language a real number is represented by the following
elements, which must be in order, if they occur at all (i.e., are not
optional):
- An optional minus sign (-).
- One or more digits (0
through 9).
- A decimal point.
- Zero or more digits.
- An optional exponent,
consisting of:
- An "E" in
upper or lower case.
- An optional minus sign.
- One or more digits.
Write a regular
expression for real numbers in the form described above. There are
several options, of course. Identify from the list below, one of the
possible regular expressions that denotes all these real numbers and
nothing else.
|
|