title: regular expression for extracting time
body: <p>I want to extract time from a text whatever format it might be.for eg: this</p>
  
  <p>1) 06/02/2009: On Tuesday morning at about 08:30 am, in Nazran, Ingushetia, Russia, an improvised explosive device (IED) that had been placed under a vehicle belonging to Lt. Colonel Isa Tochiyev, the chief of personal security for the republic's anti-drug department, exploded as the police officer was driving with his family on Moskovskaya Street, killing the police officer, wounding two children and damaging the vehicle. The IED was filled with 100 to 200 grams of explosives.</p>
  
  <p>output</p>
  
  <p>08:30 am</p>
  
  <pre><code> Pattern p = Pattern.compile("(\\d{1,2}[.:]\\d{2}\\s?[AaPp]\\.?[Mm])");
  Matcher m = p.matcher(str);
  if(m.find())
   {
   System.out.println("The time is " + m.group(0));
   }
  </code></pre>
  
  <p>Can anyone help me instead of giving serialized down voting.....</p>