We consider a one-dimensional weakly damped wave equation, with a damping coefficient depending on the displacement. We prove the existence of a regular connected global attractor of finite fractal dimension for the associated dynamical system, as well as the existence of an exponential attractor.