the url format is:
domain/startValue/endValue/content
here, startValue and endValue take either int or float numbers..
i tried:
/(\d+)/(\d+) which takes int values
and:
/(\d+\.\d+)/(\d+\.\d+) which takes float values
but don’t know how to put them together which takes both formats of numbers
tried:
/(\d+)|(\d+\.\d+)/(\d+)|(\d+\.\d+)
was told by browser that url does not match view function parameters
thanks for any advice!
Since you’re alway starting with ints, simply make the float part optional using the
?regex operator, and use a non-capturing group:..and use that string in your url definition.