// URL that generated this code:
// http://txt2re.com/index-jsharp.php3?s=42%2043&2
package ConsoleApplication1;
import System.Text.RegularExpressions.*;
public class Program
{
public static void main(String[] args)
{
  String txt="42 43";
  String re1=".*?"; // Non-greedy match on filler
  String re2="\\d+"; // Uninteresting: int
  String re3=".*?"; // Non-greedy match on filler
  String re4="(\\d+)"; // Integer Number 1
  Regex r = new Regex(re1+re2+re3+re4,RegexOptions.IgnoreCase|RegexOptions.Singleline);
  Match m = r.Match(txt);
  if (m.get_Success())
  {
  String int1=m.get_Groups().get_Item(1).toString();
  System.Console.Write("("+int1.toString()+")"+"\n");
  }
System.Console.Read();
}
}
//-----
// 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 !!!