コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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

Avatar

Level 5

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 受け入れられたソリューション

Avatar

正解者
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/
 
 

元の投稿で解決策を見る

3 返信

Avatar

正解者
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