Empty range has first element, bug or feature?

It’s pretty important because it allows you to return useful information from searches where the result is an empty range, because the start of the range tells you the location. For example, searching for word boundaries returns an empty range that has a location:

julia> findnext(r"\b", "foo bar", 2)
4:3
2 Likes