GREP Library / Trailing dot after a TOC page number
References and TOCInDesign GREP

Trailing dot after a TOC page number

Removes period after page numbers at line end. Cleans up TOC and index formatting.

Find
BeforeChapter One 15.
(?<=\d)\.(?=\r|$)
Change to
AfterChapter One 15
Leave empty: the match is deleted
Regular spaceTab

Run all of these at once with the free GREP Batch Processor.

All GREPs in the library · Learn GREP · Special characters