Attractive regular stochastic chains: perfect simulation and phase transition