hi,
I'm trying to apply a filter, and it works fine as it is. The only thing is right now the filter only works on exact matches. Is there a way for me to use wildcards or regular expressions? I've attached a code snippet below. I'd greatly appreciate any advice.
Kenneth
var filterPath;
var subTree;
filterPath = "/contacts/contact/LastName [. = 'Ch'"]";
subTree = xmldoc.selectSingleNode(filterPath);
// is there a way to match Chan, Cheung, Chang, etc.
I'm trying to apply a filter, and it works fine as it is. The only thing is right now the filter only works on exact matches. Is there a way for me to use wildcards or regular expressions? I've attached a code snippet below. I'd greatly appreciate any advice.
Kenneth
var filterPath;
var subTree;
filterPath = "/contacts/contact/LastName [. = 'Ch'"]";
subTree = xmldoc.selectSingleNode(filterPath);
// is there a way to match Chan, Cheung, Chang, etc.