package ConsoleApplication1;
import System.Text.RegularExpressions.*;
public class Program
{
public static void main(String[] args)
{
  String txt="11:Feb:2019 \"This is an Example!\"";
  String re1=".*?";
  String re2=" ";
  String re3=".*?";
  String re4=" ";
  String re5=".*?";
  String re6=" ";
  String re7=".*?";
  String re8="( )";
  Regex r = new Regex(re1+re2+re3+re4+re5+re6+re7+re8,RegexOptions.IgnoreCase|RegexOptions.Singleline);
  Match m = r.Match(txt);
  if (m.get_Success())
  {
  String ws1=m.get_Groups().get_Item(1).toString();
  System.Console.Write("("+ws1.toString()+")"+"\n");
  }
System.Console.Read();
}
}
|