Forum Discussion
switch -glob (or -regexp) for multiple directories
Thanks for responding! This is helpful and looks like it would account for all cases except where some developers may inadvertently utilize double paths in their code, although I do recognize that it wasn't listed as one of the four items in the original post. I do have some sites I support where automatically generated URLs from the app server have double slashes in their paths. (i.e. //completely//valid//uri// would fail using a pattern of " //* ") As I said though, this is helpful...I just do not know if I can use it globally across all my sites.
Does anyone happen to have more experience on the cpu issues with switch -regexp? How bad is it? The regular expression " ^/+uri " seems to cover all my bases, although I have not yet tested all combinations.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com