/
How to find Confluence pages where the page title does not have "-" or "#" special characters
How to find Confluence pages where the page title does not have "-" or "#" special characters
This article explains how to find the Confluence pages where the page title does not have special characters, "-" or "#", using the Confluence Command Line Interface (CLI) app.
Instructions
Use the getPageList action to get the list of pages with regex filtering on a page title with the space and regex parameters.
Run the CLI action with regex to get the list of pages whose title does not contain "-"(hyphen) as follows :
--action getPageList --space "SM" --regex '^((?!-).)*$'
The output of the CLI action is similar to:
11 pages in list AAA AAA.*BBB Home SPACE MK Home This is title 0 example.txt page test pagemk.png test4#test testing_childpages testpage.jpeg
Run the CLI action with regex to get the list of pages whose title does not contain "-" or "#" as follows :
--action getPageList --space "SM" --regex '^((?!-|#).)*$'
The output of the CLI action is similar to:
10 pages in list AAA AAA.*BBB Home SPACE MK Home This is title 0 example.txt page test pagemk.png testing_childpages testpage.jpeg
, multiple selections available,
Related content
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
How to find all pages that use SQL for Confluence (Pro Edition) macros via database
More like this
--regex
Read with this
View list of pages with the publication status
View list of pages with the publication status
More like this
pageExists
pageExists
More like this
How to search in Copy Page Tree
How to search in Copy Page Tree
More like this
selectPages
selectPages
More like this