using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
var text = new List<string>
"easy_three_multiplier_x3",
private static string GetRewardName(string rewardType)
var regex = new Regex(@"(?<name>\w+)_multiplier_x(?<multiplier>\d+)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
var match = regex.Match(rewardType);
Console.WriteLine("No matches");
var name = match.Groups["name"].Value;
var multiplier = match.Groups["multiplier"].Value;
Console.WriteLine("Found Match for {0}", match.Value);
Console.WriteLine("multiplier was {0}", match.Groups["multiplier"].Value);
Console.WriteLine("name was {0}", match.Groups["name"].Value);