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
One Comment on “What is the correct regular expression to match HTTP requests whose URI is /welcome.jpg?”
Billysays:
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?
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