71.9k views
4 votes
Suppose that the following regular expression is used to recognize real numbers in scientific notation in a programming language. Which of the numbers below will be accepted and which ones will be rejected? Circle the right answer. Ignore white space and note that the parentheses and brackets used in the regular expression are not symbols in the alphabet; they are part of the regular expression notation. [0-9][0-9]* (€ E (+1-)[0-9]+) (1) 2.997 E+ accept rejecct(5) E +0005 accept reject

User Antgel
by
5.4k points

1 Answer

1 vote

Answer:

1) 2.997 E+ Reject

2)E + 0005 Reject

Step-by-step explanation:

The Explanation is attached below

Suppose that the following regular expression is used to recognize real numbers in-example-1
User Bdx
by
5.3k points