MODE-2069 Fixed the regex parsing of characters for the getNodes() and getProperties() methods.