I am trying to replace the string between src=\" and " style= with item()?['AbsoluteUri']. The reason I am doing this is because the embedded image from email body in SharePoint enhanced rich text column is showing as a broken image.

My flow is showing as successful but the string wasn't replaced in "Update Item" with item()?['AbsoluteUri']


replace(outputs('Create_item')?['body/RichText'], first(split(last(split(outputs('Create_item')?['body/RichText'], 'src=\"')), '" style=')), outputs('Add_attachment')?['body/AbsoluteUri'])

Am I missing something?