PrepAway - Latest Free Exam Questions & Answers

Which three AS paths match the regex statement?

You are hired at an ISP and your new employer asks you to become familiar with the routing
policy. The 42+.*[21112]$ regular expression is in one of the policies. Which three AS paths match
the regex statement? (Choose three.)

PrepAway - Latest Free Exam Questions & Answers

A.
42 42 42 42 6

B.
42 42 42 27 21

C.
42 42 42 42 12

D.
42 69 2112 112

E.
42 69 212112

Explanation:

12 Comments on “Which three AS paths match the regex statement?

  1. ikhan says:

    42+ means any occurrence of consecutive 42 will be passed
    . means anything can come in between any number of time
    *[21|12]$ means any number ending with 21 or 12 will be passed




    0



    0
  2. regexpert says:

    The regex means the following:

    42+.*[21112]$

    – 4
    – one or more 2s
    – zero or more characters
    – either a 2, 1, 1, 1 or 2 at the end

    [21112] can also be written as [12], which would accomplish the same thing

    So the answers here would be
    B, C, D or E

    I think this question has some typos.




    0



    0

Leave a Reply