Timestamp is in this format date('m-d-Y H:i:s A') which will result 08-26-2011 16:00:25 PM.
I need a regular expression to parse a file with time stamps starting with last week and last month, ignore previous time stamps. Basically something like this:
if(preg_match("/TimestampsWithinLastWeek+String/", $match))
{
//Do something
}
Regex is not the right tool for this, use
strtotime()instead: