I'm utterly confused by reading so many regular expression articles so far on this.
I am looking to match the first URL, the rest should not match:
https://subdomain.example.com/test <== only this should match
https://subdomain.example.com/paht/test.css
https://subdomain.example.com/path/path/test.js
https://example.com/test/
I am looking to match only the routes that have no trailing slashes or file extensions.
Here is my regex: https:.*^(?!([^\/]|(\.[a-z]{2,8})))$
You can try here: https://regexr.com/5dic8