300-070 · Question #363
Which option lists matches for the route pattern 38[^1-6]?
The correct answer is A. 380, 387, 388, 389. The CUCM route pattern wildcard [^1-6] is a negation operator that matches any single digit not in the range 1 through 6, so 38[^1-6] matches 380, 387, 388, and 389.
Question
Which option lists matches for the route pattern 38[^1-6]?
Options
- A380, 387, 388, 389
- B381, 382, 383, 384, 385, 386 only
- C381, 386 only
- D381, 382, 383, 384, 385, 386, 38*, 38# only
How the community answered
(41 responses)- A76% (31)
- B15% (6)
- C5% (2)
- D5% (2)
Why each option
The CUCM route pattern wildcard [^1-6] is a negation operator that matches any single digit not in the range 1 through 6, so 38[^1-6] matches 380, 387, 388, and 389.
The caret (^) inside square brackets in a CUCM route pattern negates the specified range; [^1-6] therefore matches only digits 0, 7, 8, and 9 - those outside 1-6 - producing valid matches of 380, 387, 388, and 389.
381 through 386 are exactly the digits excluded by [^1-6]; these would be matched by the non-negated pattern 38[1-6], not by 38[^1-6].
Both 381 and 386 fall within the negated range [1-6] and are explicitly excluded from matching by the ^ operator.
381 through 386 are negated and thus excluded; additionally, * and # are not matched by a numeric range negation in this dial pattern context.
Concept tested: CUCM route pattern negation wildcard bracket syntax
Source: https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/12_5_1/systemConfig/cucm_b_system-configuration-guide-1251/cucm_b_system-configuration-guide-1251_chapter_0110.html
Topics
Community Discussion
No community discussion yet for this question.