Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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  action to get the list of pages with pages with regex filtering on a page title with parameters,with the space and regex parameters.

  • Run the CLI action with regex as follows to get the list of pages , whose title does not contain "-"(hyphen) as follows :

    Code Block
    themeMidnight
    --action getPageList --space "SM" --regex '^((?!-).)*$'

    The output of the CLI action is similar to:

    Code Block
    themeMidnight
    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 as follows to get the list of pages , whose title does not contain "-" or "#" . as follows :

    Code Block
    themeMidnight
    --action getPageList --space "SM" --regex '^((?!-|#).)*$'

    The output of the CLI action is similar to:

    Code Block
    themeMidnight
    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