I am using the Parsely module and I want Parsely to ignore certain paths. I achieve this by setting the paths to be ignored field in parsely's settings page. I am able to use the * wildcard, and I need to know if there are other wildcards I can use to match paths. Where I can find a list with wildcards used to match paths?

I ended up looking at the function drupal_match_path which is described here: https://api.drupal.org/api/drupal/includes!path.inc/function/drupal_match_path/7 ; it seems that it only replaces newlines, and asterisks. Am I wrong? Are these the only "wildcards" available?

1 Answer 1


Unfortunately, the short answer is: No, you cannot use other wildcards.

The reason is the use of preg_quote inside drupal_match_path, any regex wildcards you add to your pattern will be escaped.

P.S.: Very cool question, had to take a good look at this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.