Which pattern does the route pattern \+61278[^3-5]59XXX match?
A. \+61278359001
B. +61278459001
C. 278259001
D. +61278259001
E. +612783559001
Which pattern does the route pattern \+61278[^3-5]59XXX match?
A. \+61278359001
B. +61278459001
C. 278259001
D. +61278259001
E. +612783559001
D correct
For example, the expression [^abcd] indicates a range that matches any
single letter, as long as it is not the letters a, b, c, and d.
https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/getting_started/configuration/guide/asr9k/asr9kaexp.pdf
B is very wrong Answer. [^3-5] means except (3,4,5) and in this case (0-3) matches.
D is the correct Answer.
I agree (Answer D).
[^x–y] Excluded range notation
D is the right answer:
Anchoring
You can instruct the Cisco IOS software to match a regular expression pattern against the beginning or the end of the input string. That is, you can specify that the beginning or end of an input string contain a specific pattern.
As an example, the following regular expression matches an input string only if the string starts with abcd:
^abcd
Whereas the following expression is a range that matches any single letter, as long as it is not the letters a, b, c, or d:
[^abcd]
Extractc from:
https://www.cisco.com/c/en/us/td/docs/ios/12_2/termserv/configuration/guide/ftersv_c/tcfaapre.html
D is the correct answer
in [] ^ means except. Therefore the correct answer is D
D
The following example matches any letter except the ones listed: [^a-dqsv]
http://www.cisco.com/c/en/us/td/docs/ios/12_2/termserv/configuration/guide/ftersv_c/tcfaapre.html
B is the right answer. if you look closely that is a 2 after the 8 and before the 5. ^ means beginning of the string, then [ ] means a character within a range.
https://www.cisco.com/c/en/us/td/docs/ios/12_2/termserv/configuration/guide/ftersv_c/tcfaapre.html