Example #1
0
 /// <summary>
 /// Get a string with every occurence of '#' replaced with a random number.
 /// </summary>
 public static string Numerify(this string s)
 {
     return(Regex.Replace(s, "#", new MatchEvaluator((m) => RandomNumber.Next(0, 9).ToString()), RegexOptions.Compiled));
 }