I’m trying to retrieve values from a BTreeMap with a Range of Strings.
I would like to do this without Regex.
I was thinking that if I want to get all the keys that start with
/api/, I would use
/api/ as the lower bound and then tack on the highest non printing character
This doesn’t seem to work. What is the correct way to specify a range of strings, where the upper bound is not known, but should have a certain prefix?