I am trying to match both…

http://example.com/a/b

…and…

http://example.com/a/b/


^(.*)/(.*)$

…works for the first and…

^(.*)/(.*)/$


…works for the second, but I can't find a solution that matches both. Shouldn't the first match both because I am stopping after the "b" and not caring about thing else after that?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to