Solved
Regex for Template Allowed paths
I am configuring the templates with the allowedpaths property and i want the template to be allowed everywhere under content/www except for content/www/dir1 and content/www/dir2 paths. Please help in forming the regex. I tried the below combinations.
^(?!/content/www/dir1(/.*))/^(?!/content/www/dir2(/.*))