Three goals in three minutes saw Peterborough stage a stunning fightback against Accrington. Ian Craney fired Stanley ahead and Sean Doherty and Andy Todd both hit the woodwork for the visitors but Trevor Benjamin levelled with a penalty.
Danny Crow put Posh ahead before Aaron McLean's surging left-flank run ended in his first goal for the club.
Craney pulled one back for Stanley direct from a corner but Crow extended Posh's lead with two minutes left.
Peterborough: Tyler, Holden, Branston, Futcher, Arber, Ghaichem (Crow 46), Butcher, Huke, Day (Stirling 77), Benjamin, McLean (Opara 80).
Subs Not Used: Davis, Hicks.
Booked: Stirling.
Goals: Benjamin 57 pen, Crow 58, McLean 60, Crow 88.
Accrington Stanley: Dunbavin, Cavanagh, Williams (Edwards 34), Welch, Richardson, Todd, Proctor, Harris, Doherty (Mangan 65), Craney, Mullin.
Subs Not Used: Elliot, Brown, Byrom.
Booked: Craney, Harris, Cavanagh.
Goals: Craney 23, 79.
Att: 3,990
Ref: M Haywood (Lichfield).