// URL that generated this code:
// http://txt2re.com/index-csharp.php3?s=42%2043&-4
using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
  string txt="42 43";
  string re1=".*?"; // Non-greedy match on filler
  string re2="(3)"; // Day 1
  Regex r = new Regex(re1+re2,RegexOptions.IgnoreCase|RegexOptions.Singleline);
  Match m = r.Match(txt);
  if (m.Success)
  {
  String day1=m.Groups[1].ToString();
  Console.Write("("+day1.ToString()+")"+"\n");
  }
Console.ReadLine();
}
}
}
//-----
// Paste the code into a new Console Application
//-----
 
Feedback
ShubhamGupta::
Saved my day!
Wed, 29 May 2013 11:36PM
::
Thu, 30 May 2013 12:02AM
Astarte::
Awesome, just awesome!
Thu, 30 May 2013 12:03AM
David Dawkins::
Excellent tool, where's the donate link? thank-you !!!