Please see Pseudo code below.
About 3 hours to do and test. Code will be clean and well documented.
Available for any changes requested or problems to be fixed until completion.
But I'm available only from Sunday 9am, Israel morning time (That's GMT +2) see link below to check my hours). Will not be able to interact here till then.
I'm bidding low because I want to accumulate good freelancer.com reputation.
See [login to view URL]
Pseudo code:
' Regex Macro
' ------------
' Show FormRegex
' FormRegex
' =========
' == Text entry with remembered values ==
' -- set form height and width (to your likings)
' -- Note: Not autocomplete.
' - ComboSearchString, bind: SearchStrings
' - ComboReplace, bind: ReplacementStrings
' - BtnGO
' On GO pressed
' =============
' == Save search and replace texts ==
' - Add combo values to remembered lists, if unique.
' == Create regex ==
' - Create regex (single line, global)
' - Set regex IgnoreCase according to searchString
' - Set pattern to searchString removing ignoreCase flag
' == Test and run ==
' - Test against CurrentDoc text
' - Test fails: End with Msg_NoMatchesFound
' - For each match found:
' -- Replace
' --- in: TextToSearch
' --- at: [login to view URL],
' --- word: [login to view URL]
' --- with: ReplaceString
' - Optionally: Show MsgDone