Or if you want to also match

http://example.com/a/b/whatever/else/is/out/here/

I do.


Also, you might want to do ([^/]*) instead of (.*)

^([^/]*)/([^/]*)

Now we are getting somewhere. That works. The only problem now is that it is only returning "b" instead of "b/whatever/else/is/out/here/" as the value of $2.

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