Infidelity post

Has anyone ever stated with their partner after cheating and wish you would have left the first time ? I have so much regret because the longer I stay it’s harder to leave . We have a child together and I’m trying to look past that and just do what’s best for my heart..