Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

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

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
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/
 
 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor
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/
 
 

Avatar

Employee

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.

Avatar

Community Advisor

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