Actor and director Ben Affleck has thanked his family as he confirms he has completed a 40-day stint in rehab for alcohol addiction.

The Batman star took to Instagram to say he is continuing to receive outpatient care and said battling his addiction is "a full-time commitment".

We need your consent to load this Instagram contentWe use Instagram to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences

The two-time Oscar winner wrote: "This week I completed a forty day stay at a treatment center for alcohol addiction and remain in outpatient care.

"The support I have received from my family, colleagues and fans means more to me than I can say. It's given me the strength and support to speak about my illness with others.

"Battling any addiction is a lifelong and difficult struggle. Because of that, one is never really in or out of treatment. It is a full-time commitment.

"I am fighting for myself and my family. So many people have reached out on social media and spoken about their own journeys with addiction.

"To those people, I want to say thank you. Your strength is inspiring and is supporting me in ways I didn't think was possible. It helps to know I am not alone."

Ben Affleck hopes to be an example to others who are struggling with addiction

He concluded: "As I've had to remind myself, if you have a problem, getting help is a sign of courage, not weakness or failure.

"With acceptance and humility, I continue to avail myself with the help of so many people and I am grateful to all those who are there for me. I hope down the road I can offer an example to others who are struggling."

Affleck was pictured being driven to the rehab facility by his estranged wife Jennifer Garner in August. 

The Argo director previously wrote about receiving treatment for alcohol addiction in 2017 when he wrote on Facebook: "I want to live life to the fullest and be the best father I can be. I want my kids to know there is no shame in getting help when you need it, and to be a source of strength for anyone out there who needs help but is afraid to take the first step.

"I'm lucky to have the love of my family and friends, including my co-parent, Jen, who has supported me and cared for our kids as I've done the work I set out to do. This was the first of many steps being taken towards a positive recovery."

Ben Affleck thanks Jennifer Garner for support as he deals with alcohol addiction

Affleck and Garner, who share three children, Violet, Seraphina and Samuel, have remained on good terms since announcing their split in 2015. They officially filed for divorce in April 2017