I have string like this
a="{\"company\"=>\"khkhkh\", \"email\"=>\"[email protected]\",\"address\"=>\"yiyiyu\", \"date\"=>Mon, 28 Apr 2014 13:14:10 BST +01:00}"
but i have made a mistake when generating this string. that is, i appended the date without converting to string. So now if i try to get back this into a hash using eval(a) . This throws a error, with is acceptable.
SyntaxError: (eval):1: syntax error, unexpected tCONSTANT, expecting => ....
Is there any way to get that hash back, since iam in a situation that i cant regenerate this string.
Any help would be highly appreciable. Thanks.