Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

NehaCMS
Level 4
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

Package Manager FIlters Include Regex
1 Accepted Solution
surabhikatiyar
Correct answer by
Employee
Employee
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
surabhikatiyar
Correct answer by
Employee
Employee
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

aemmarc
Employee
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.

ChitraMadan
Community Advisor
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