Detect and remove Do not reply email address

I want to automatically detect the do-not-reply email address while replying to an email and replace it with the other email address from the body. How can I achieve this?