Is there a way to match all of the below with one regular expression? If not, what would be a good/clean way to do so?
/resources/$
/resources/type$
/resources/type/$
/resources/category$
/resources/category/$
/resources/anything here that includes up to 1 slash and ends with that slash
The following should not be matched, because of the presence of something:
/resources/type/something
/resources/category/something
You can use this: