We are trying to get all the nodes containing a property value starting from below string "/content/retail/mx/mexico/es/"
. For this we have written a AEM XPath query:
/jcr:root/content/retail/mx/mexico//*
[
jcr:contains(., '/content/retail/mx/mexico/es/' )
]
We are getting the results but problem is we are getting results of those nodes also who contains property value "/content/retail/mx/mexico/es_mexico"
. It seems XPath doesn't consider the last "/"
in path.
Is there anyway to escape so that we don't get the results of nodes having es_mexico
?