Working with regular expressions

Which of the following URLs will match with the above given regular expression?

(1) localhost/0

(2) localhost/detail/0

(3) localhost/index/0

(4) localhost/100

Options
  1. Only 1
  2. Only 4
  3. Both 2 & 3
  4. Both 1 & 4

Related Posts