Multiple string replace in c#
===

I am dynamically editing a regex for matching text in a pdf, which can contain hyphenation at the end of some lines.

Example:

Source string:

    "consecuti?vely"

Replace rules:

     .Replace("cuti?",@"cuti?(-\s+)?")
     .Replace("cun",@"con(-\s+)?")
     .Replace("consecu",@"consecu(-\s+)?")

Desired output:

    "con(-\s+)?secu(-\s+)?ti?(-\s+)?vely"


The replace rules are built dynamically, this is just an example which causes problems.

Whats the best solution to perform such a multiple replace, which will produce the desired output?


So far I thought about using Regex.Replace and zipping the word to replace with optional (-\s+)? between each character, but that would not work, because the word to replace already contains special-meaning characters in regex context.