Regex Snippets
# Remove dots and spaces and page numbers
([\s\.])(?!\1)([\s\.])(?:\1\2)*\1?[0-9]+
Works for extracting TOC from the following format:
# From TOC to Embeddings
Find ([0-9. ]+)([A-z-, ’:]+)*
, Replace $1[[#$2]]
Search
([\s\.])(?!\1)([\s\.])(?:\1\2)*\1?[0-9]+
Works for extracting TOC from the following format:
Find ([0-9. ]+)([A-z-, ’:]+)*
, Replace $1[[#$2]]