Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - Topic 2 Question 11 Discussion

Which sentence describes the following regular expression match?preg_match('/^\d+(?:\.[0-9]+)?$/', $test);
B) It matches float numbers without thousand seperators.
A) It matches float numbers with thousand seperators.
C) It matches binary integer numbers.
D) It matches any string.
E) It does not match anything

Zend 200-710 Exam - Topic 2 Question 11 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 11
Topic #: 2
[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:

0/2000 characters
Viola
11 months ago
Definitely not A, that's for sure.
upvoted 0 times
...
Blondell
11 months ago
I thought it could match any string, but guess not!
upvoted 0 times
...
Lonny
11 months ago
Wait, it doesn't match binary numbers?
upvoted 0 times
...
Blair
11 months ago
Totally agree with B!
upvoted 0 times
...
Roy
11 months ago
It matches float numbers without thousand separators.
upvoted 0 times
...
Emile
12 months ago
I don't think it matches any string at all; it seems too specific for that.
upvoted 0 times
...
Lennie
12 months ago
I remember practicing a similar question, and I think it only matches floats without thousand separators.
upvoted 0 times
...
Charlie
12 months ago
I think this regex is about matching numbers, but I'm not sure if it includes thousand separators or not.
upvoted 0 times
...
Keneth
12 months ago
I'm a bit confused; I thought it could match integers too, but I guess it has to be a float because of the decimal part.
upvoted 0 times
...
Kristine
12 months ago
Hmm, I'm not sure about this one. The question mentions they're working from conjecture and opinion, not data. Maybe we should consider doing some kind of value analysis to evaluate the options more objectively?
upvoted 0 times
...
Meghann
12 months ago
This is a classic exam question - they're trying to trip us up with the wording. I'll need to read each statement closely and really think about whether it's true or not. Can't afford to rush through this one.
upvoted 0 times
...
Val
1 year ago
I feel uncertain about the FDA classification—like, do all generics need to prove their effectiveness in the same way as brand-name drugs?
upvoted 0 times
...

Save Cancel