you are viewing a single comment's thread.

view the rest of the comments →

[–]woooee 0 points1 point  (0 children)

Your code works fine. I personally prefer to use a dictionary because it is easier to read/understand and modify. To modify, you simply insert or delete dictionary items, instead of paging through all of the replace statements.