I have a bunch of dates:
March 23, 2008July 30, 2008
January 22, 2008October 2, 2008
etc...
I need to break these apart with a pipe
March 23, 2008 | July 30, 2008
January 22, 2008 | October 2, 2008
I tried this:
$string = preg_replace("/([A-z]{1,}[\s]{1}[0-9]{1,2}[,\s]{1}[0-9]{4})([A-z]{1,}[\s]{1}[0-9]{1,2}[,\s]{1}[0-9]{4})/","$1 | $2",$data);
and its no go