On Mon, Nov 10, 2025 at 3:39 PM Darryl Baker <[email protected]>
wrote:

> 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] <[email protected]>*
>
> (847) 467-6674 <+18474676674>
>

httpd uses PCRE, so you can use any online testing tool.  That being said,
look into the conditional modifier ()? when grouping expressions, and (A|B).

Reply via email to