I have strings like this:
$string="OWN - NLM STAT- Publisher DA - 20091005 AU - Gannon AM AU - Turner EC AU - Reid HM AU - Kinsella BT AU- XYZ AD - UCD School of Biomolecular and Biomedical Sciences";
I want to parse these tags and create an hash for this string.
The output should be like this:
OWN- NLM STAT- Publisher DA - 20091005 AU- Gannon AM Turner EC Kinsella BT XYZ AD - UCD School of Biomolecular and Biomedical Sciences
I tried paring using regular expression but some times the format might be different.
How to parse all information and create hash?