Yes, that's what i meant... i would also create a combined regular expression `RESOURCE_RE` instead of using them here with `or`, but here i'm fine too if you prefer this way