A method for reducing sidelobes in processing echoes received in phase-coded pulse radars is proposed. A recursive stable time-variant filter structure is derived which approximates an inverse code filter according to a least-squares optimality criterion. The application to the case of phase coding with binary Barker sequences is examined in detail. Performance of less complex but suboptimal filter structures are also evaluated.