Created
August 6, 2015 18:11
-
-
Save money4honey/dd619ba7f12023ba5bdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace myClasses | |
{ | |
public class ReplaceMaster | |
{ | |
public static string replaceMatches(string text, string[] arrayFind, string replace) | |
{ | |
foreach (string line in arrayFind) { | |
if (text.Contains(line)) text = text.Replace(line, replace); | |
} | |
return text; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment