Forum Moderators: coopster
I have a regex in a program that finds a group of names when they occur at the start of an URL's path_info:
^/(testgalleries¦galleries¦poll¦news¦photos)(/¦$)
This works when one of the words is in the root of the site like:
example.com/photos
How can I change it if the name can be found in any level of subdirs, e.g.
example.com/subdir/photos
example.com/subdir/subdir/photos
example.com/subdir/subdir/subdir/photos
I basically know I need to be able to search for alphanumerics, -, and / between ^/ and (testgalleries
Thanks in advance.