React router allow path with dot(.)

Viewed 1455

I was trying to add regex to allow paths like below, but i was not able to make it work.
eg:

  1. '/hello/search.apple.tree'
  2. '/hello/search.mango.tr'
  3. '/view/location.chicago.illinois'
  4. '/view/location.boston.ma'
2 Answers
Related