console.log();
console.log('Display demonstration:');
console.log('There are text and HTML display options for each of the objects `result`, `exp` and `exp.source`');
console.log();
console.log('source:');
console.log(txt);
html += '<h3>source example</h3>';
html += exp.sourceToHtml();
page = exp.sourceToHtmlPage();
writeHtml(page, 'display-source');
txt = result.toText();
console.log();
console.log(txt);
html += '<h3>results example</h3>';
html += result.toHtml();
page = result.toHtmlPage();
writeHtml(page, 'display-results');
txt = exp.toText();
console.log();
console.log(txt);
html += '<h3>last match example</h3>';
html += exp.toHtml();
page = exp.toHtmlPage();
writeHtml(page, 'display-exp');
html = apgLib.utils.htmlToPage(html);
writeHtml(html, 'display-all');