[UPHPU] regex help
Wade Preston Shearer
lists at wadeshearer.com
Thu Mar 27 09:58:45 MDT 2008
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080327/417d6762/smime.bin
More information about the UPHPU
mailing list