PrepAway - Latest Free Exam Questions & Answers

Which sentence describes the following regular expression match? preg_match(‘/^\d+(?:\.[0-9]+)?

Which sentence describes the following regular expression match?
preg_match(‘/^\d+(?:\.[0-9]+)?$/’, $test);

PrepAway - Latest Free Exam Questions & Answers

A.
It matches any string.

B.
It does not match anything

C.
It matches float numbers without thousand seperators.

D.
It matches float numbers with thousand seperators.

E.
It matches binary integer numbers.

Explanation:

One Comment on “Which sentence describes the following regular expression match? preg_match(‘/^\d+(?:\.[0-9]+)?


Leave a Reply

Your email address will not be published. Required fields are marked *