What I have: a D7 site with around 2k nodes on it, many of these nodes have images
<img> in the html of the body but those images are not assigned to the image field. (It is an old drupal site that was upgraded to D7).
I would like to parse all the nodes so that the first image in the body content is assigned programatically to the image field of the node. Manually editing is not an option, as there are over 2.000 nodes on that site.
Is there a way to do that programatically? I guess field api may help (and so my tag) but I dont really know.