Regex tricks

From The Jolly Contrarian
Revision as of 17:45, 6 April 2018 by Amwelladmin (talk | contribs) (Created page with "===Tagging evberything coloured blue *search and destroy **double spaces **Fields (ctrl-shift-F9) **bookmarks - there's a cool macro for this: <nowiki>Sub RemoveAllBookmarks(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

===Tagging evberything coloured blue

  • search and destroy
    • double spaces
    • Fields (ctrl-shift-F9)
    • bookmarks - there's a cool macro for this:

Sub RemoveAllBookmarks() Dim objBookmark As bookmark For Each objBookmark In ActiveDocument.Bookmarks objBookmark.Delete Next End Sub

clear out all blue dashes - replace them with xxx

clear out all blue apostrophes - replace them with yyy


clean out all blue spaces between words (this won't do the ones either side of the blue phrase)

([A-Z][a-z]{1,}) ([A-Z][a-z]{1,}) to 1\qq\2