Skip to main content
Level 4
Sep 7, 2020 8:25 PM UTC
Solved

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

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Surabhi_Katiyar
Surabhi_KatiyarAccepted solution
Adobe Employee
Sep 8, 2020 7:35 AM UTC
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/
 
 

3 replies

Surabhi_Katiyar
Adobe Employee
Surabhi_KatiyarAdobe EmployeeAccepted solution
Adobe Employee
Sep 8, 2020 7:35 AM UTC
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/
 
 
Translate
Adobe Employee
Sep 8, 2020 1:51 PM UTC

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.

Translate
ChitraMadan
Community Advisor
Community Advisor
Sep 8, 2020 8:18 PM UTC

Hi @nehama ,

 

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

Translate