I have over one thousand reviews in a string. I have been asked to see if i can get the average rate from each author. an example of the string is below. I have highlighted the content which I need to extract into an array.
Shepherd's Bush Empire (Times p54 - 4* David Sinclair)Grizzly Bear - Serpentine Sessions, Hyde Park, London (Independent Viewspaper p17 - 4* Elisa Bray)Blondie – Kenwood House (Sun p69 – 4* JJ)Jeff Tweedy - Union Chapel, London (Independent Viewspaper p17 - 4* Enjoli Liston)Tony Bennett - Albert Hall, London (Times p68 - 4* Clive Davis, Standard p40 – 5* Jack Massarick
Is there anyway to explode the string on *
go back one character and forward to words.
I know there will be odds but these can be removed later. is there a way of using preg_split
or explode
?