Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Directory pepper question

I’d love to be able to show stats two directories deep, any suggestion on a regexp for that ?

Shaun Inman
Mint/Pepper Developer
Posted on Sep 23, '08 at 04:10 pm

There’s a couple ways you could do this.

/([^/]+/[^/]+)/

would display dir1/dir2 for yourdomain.com/dir1/dir2/pages.html.

/[^/]+/([^/]+)/

would simply display dir2 for a similar url.

You must be logged in to reply. Login above or create an account