Need to extract nodes containing locale name like sg under root path /content/data/project using include option in package manager | Community
Skip to main content
New Participant
September 7, 2020
Solved

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

  • September 7, 2020
  • 3 replies
  • 1369 views

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.
Best answer by Surabhi_Katiyar
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

ChitraMadan
New Participant
September 8, 2020

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

Employee
September 8, 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.

Surabhi_Katiyar
Surabhi_KatiyarAccepted solution
Employee
September 8, 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/