IBM
C2140-842 · Question #13
Which regular expression offers a successful way to ensure the order number is a 1 to 3-digit number in the following format? Your order number is 125.
The correct answer is D. Your order number is [0-9]{1,3)\. See the full explanation below for the reasoning.
Question
Which regular expression offers a successful way to ensure the order number is a 1 to 3-digit number in the following format? Your order number is 125.
Options
- AYour order number is [0-9]{3}.
- BYour order number is [0-9]{3}.
- CYour order number is [0-9]{1,3).
- DYour order number is [0-9]{1,3).
How the community answered
(64 responses)- A11% (7)
- B3% (2)
- C5% (3)
- D81% (52)
Community Discussion
No community discussion yet for this question.