以下のすべてを1つの正規表現で一致させる方法はありますか? そうでない場合、それを行うための良い/クリーンな方法は何ですか?
/resources/$
/resources/type$
/resources/type/$
/resources/category$
/resources/category/$
/resources/anything here that includes up to 1 slash and ends with that slash
が存在するため、以下は一致してはなりませんsomething
:
/resources/type/something
/resources/category/something