Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 4 Question 75 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 75
Topic #: 4
[All 200-710 Questions]

Which sentence describes the following regular expression match?

preg_match('/^\d+(?:\.[0-9]+)?$/', $test);

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Chauncey
2 months ago
Haha, D) is a classic answer choice to mess with us. No way that regex matches 'any string'.
upvoted 0 times
...
Sommer
2 months ago
I'm not sure, but I think it could also be A) It matches float numbers with thousand separators, as the regular expression includes a period for decimal numbers.
upvoted 0 times
...
Hana
2 months ago
Hmm, I'm not so sure. The \\d+ could also match integers, right? I'll go with C) just to be safe.
upvoted 0 times
Melda
2 months ago
I'm not so sure, I'll go with C) just to be safe.
upvoted 0 times
...
Deandrea
2 months ago
I agree, the \\d+ matches integers as well.
upvoted 0 times
...
Jacquline
2 months ago
I think it matches float numbers without thousand separators.
upvoted 0 times
...
...
Noel
2 months ago
I agree with Rosalia, because the regular expression allows for decimal numbers without thousand separators.
upvoted 0 times
...
Flo
3 months ago
I think it's B as well. The \\d+ matches one or more digits, and the optional \\.[0-9]+ part matches the decimal part.
upvoted 0 times
Scarlet
2 months ago
I'm not sure about this one. Can someone explain why it's not A or C?
upvoted 0 times
...
Elenor
2 months ago
Yes, I agree. It definitely looks like it's matching float numbers without thousand separators.
upvoted 0 times
...
Gail
2 months ago
I think it's B as well. The \\d+ matches one or more digits, and the optional \\.[0-9]+ part matches the decimal part.
upvoted 0 times
...
...
Corrina
3 months ago
B) definitely. That regex checks for float numbers with no thousand separators.
upvoted 0 times
Stephane
2 months ago
E) It does not match anything
upvoted 0 times
...
Edmond
2 months ago
C) It matches binary integer numbers.
upvoted 0 times
...
Rory
2 months ago
B) It matches float numbers without thousand separators.
upvoted 0 times
...
Yvette
3 months ago
A) It matches float numbers with thousand separators.
upvoted 0 times
...
...
Rosalia
3 months ago
I think the answer is B) It matches float numbers without thousand separators.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77