Sgt Danny Nightingale said outside court after being released: "Thank you to the world for being so kind".
His wife Sally said she was "very, very happy" and that she had "fought for this and got justice today".
More top news
Barcelona players and fans joined together in a minute's silence to remember the victims of Thursday's terror attack in the city.
Comedian and film star Jerry Lewis has died in his Las Vegas home at the age of 91.
Authorities in Spain say the terror cell behind two deadly attacks in the country has been "dismantled", but what is known about it?