Regular expression validation

Darryl Baker <[email protected]> Mon, 10 Nov 2025 20:36:26 +0000
Newsgroups gmane.comp.apache.user
Message-ID <[email protected]>
Is there a mailing list where I can ask regular expression help?


I want to match line that end with a word or the word and a slash or the word slash anything ‘/(.*)$’
I know the last case but making sure the regex covers the first two cases is what I am unsure about.

Examples:
https://www.example.com/foobar
https://www.example.con/foobar/
https://www.example.com/foobar/anything

Darryl Baker, GSEC, GCLD  (he/him/his)
Sr. System Administrator
Distributed Application Platform Services
Northwestern University
4th Floor
2020 Ridge Avenue
Evanston, IL  60208-0801
[email protected]<mailto:[email protected]>
(847) 467-6674<tel:+18474676674>