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?

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



Leave a Reply 1

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


Billy

Billy

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?