Find list of pages containing special characters using Confluence Command Line Interface (CLI)

This article explains how to find the list of pages that contains special characters in the page using Confluence Command Line Interface (CLI).

Instructions

  1. Determine the hexadecimal code for the special character you wish to find.  For example the hexadecimal code for an Ampersand ("&") is 26 and Number ("#") is 35.
  2. Write an action with the regex2 parameter to retrieve the list of pages from one space. See the example action below for "&#": 

    --action getPageList --space XXX --regex2 ".*\x26\x35.*"