yes, that's possible. I was struggling with that too, it is hard too fit in the urlRegEx and contentType parameter. The rest degrades nicely when invalidating 1 path. Unless you also want to make the invalidate method degrade for multiple paths at once, but that functionality currently does not exist. I think that if you use varnish 3 you know that you can also use a regex for the path to invalidate multiple path's and that the project code becomes varnish 2 incompatible.

But maybe the method name ``invalidatePath`` is weird if you invalidate multiple paths with it?

If you don't find that a problem I would suggest to add a varnish version (default 2) to the configuration and extend the current invalidatePath:  ``invalidatePath($path, array $options = array(), $contentType = '.*', array $hosts = array())``

It will work for invalidating 1 path and multiple paths. The "path" parameter can then also be a url regex which will then become the header ``X-Purge-Regex``. The varnish version from config helps to use the correct url for the request.