Guest User

Untitled

a guest
Jun 20th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. newData = Regex.Replace(textData, "(" + String.Join("|", keys) + ")",
  2. new MatchEvaluator(this.EvaluateReplacement));
  3.  
  4. string EvaluateReplacement(Match m)
  5. {
  6. if (this.convertDict.ContainsKey(m.Value))
  7. {
  8. return this.convertDict[m.Value];
  9. }
  10. return m.Value;
  11. }
Add Comment
Please, Sign In to add comment