Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager

Avatar

Avatar

NehaCMS

Avatar

NehaCMS

NehaCMS

07-09-2020

Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager. Can same be done using some regex. Kindly share some examples

Package Manager FIlters Include Regex

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

surabhikatiyar

Employee

Avatar

surabhikatiyar

Employee

surabhikatiyar
Employee

08-09-2020

The regex that can be used is  /content/data/project/?.*sg?.* inside the include option within the filter.xml. And how to define it Within filter.xml can be found in the below link:
 

For testing out the regex expression you can use https://regexr.com/
 
 

Answers (2)

Answers (2)

Avatar

Avatar

ChitraMadan

MVP

Avatar

ChitraMadan

MVP

ChitraMadan
MVP

08-09-2020

Hi @NehaCMS ,

 

You can use filter as /content/data/project and add a include rule as /content/data/project/sg.*

 

Please refer to this link for some examples: http://aemfaq.blogspot.com/2013/04/cq5-package-filter-includeexclude.html

Avatar

Avatar

aemmarc

Employee

Avatar

aemmarc

Employee

aemmarc
Employee

08-09-2020

I'd use the ACS Commons Query Packager -- that way you can build you package based on the result set from a jcr-sql query.