PrepAway - Latest Free Exam Questions & Answers

What is the correct regular expression to match HTTP requests whose URI is /welcome.jpg?

What is the correct regular expression to match HTTP requests whose URI is /welcome.jpg?

PrepAway - Latest Free Exam Questions & Answers

A.
^/welcome.jpg

B.
^/welcome\.jpg

C.
^*/welcome\.jpg

D.
^\/welcome\.jpg

E.
^\*/welcome\.jpg

One Comment on “What is the correct regular expression to match HTTP requests whose URI is /welcome.jpg?

  1. Billy says:

    I think, right answer is C. “/” is not metacharacter, co it is not necessary to protect its meaning with backslash. And “/welcome.jpg” probably is not in the start of URI string, so wildcard “*” should be used.
    Am I wrong?




    0



    0

Leave a Reply