PrepAway - Latest Free Exam Questions & Answers

What is the correct regular expression to match a URI r…

What is the correct regular expression to match a URI request equal to /test.exe?

PrepAway - Latest Free Exam Questions & Answers

A.
/test.exe

B.
Vtest\\.exe

C.
/test\\.exe

D.
*/test\\.exe

E.
\\*/test\\.exe

F.
*/test.exe

Explanation:
It has a special meaning = match any character which would have the result testaexe, test$exe etc- would me matched as well as test.exe
The \\ removes the special meaning from the
So it is now just matching the .exe — so = test.exe exactly has to be matched.


Leave a Reply