Which pattern does the route pattern \+61278[^3-5]59XXX match?

Which pattern does the route pattern \+61278[^3-5]59XXX match?
A. \+61278359001
B. +61278459001
C. 278259001
D. +61278259001
E. +612783559001

cisco-exams

8 thoughts on “Which pattern does the route pattern \+61278[^3-5]59XXX match?

  1. B is very wrong Answer. [^3-5] means except (3,4,5) and in this case (0-3) matches.
    D is the correct Answer.

  2. 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

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.