What is the correct regular expression to match HTTP requests whose URI is /welcome.jpg?
A.
^/welcome.jpg
B.
^/welcome\.jpg
C.
^*/welcome\.jpg
D.
^\/welcome\.jpg
E.
^\*/welcome\.jpg
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?
A.
^/welcome.jpg
B.
^/welcome\.jpg
C.
^*/welcome\.jpg
D.
^\/welcome\.jpg
E.
^\*/welcome\.jpg
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?