In this paper, we investigate a nonlinear fiber described by a (2[Formula: see text]+[Formula: see text]1)-dimensional complex Ginzburg–Landau equation with the chromatic dispersion, optical filtering, nonlinear and linear gain. Bäcklund transformation in the bilinear form is constructed. With the modified bilinear method, analytic soliton solutions are obtained. For the soliton, the amplitude can decrease or increase when the absolute value of the nonlinear or linear gain is enlarged, and the width can be compressed or amplified when the absolute value of the chromatic dispersion or optical filtering is enhanced. We study the stability of the numerical solutions numerically by applying the increasing amplitude, embedding the white noise and adding the Gaussian pulse to the initial values based on the analytic solutions, which shows that the numerical solutions are stable, not influenced by the finite initial perturbations.