Paris - All Black legend Dan Carter's late try sealed Racing 92's unlikely ticket to the French Top 14 play-offs on a gripping end to the regular season on Saturday.
Carter's 71st-minute contribution earned defending champions Racing a come-from-behind 22-20 win over Bordeaux-Begles who were bossing the game 20-3 after 50 minutes.
Racing picked up the sixth and final play-off berth to qualify for the end-of-season quarter-finals along with Montpellier, Toulon and Castres.
Top-of-the-table La Rochelle, chasing a maiden Top 14 title, were beaten 30-26 by Clermont for whom this was a perfect confidence booster ahead of next weekend's European Cup final against Saracens in Edinburgh.
Clermont's win earned them the second automatic semi-final spot with La Rochelle.
Racing's dramatic success meant their fierce Paris rivals Stade Francais, who went into Saturday's final throw of the dice neck and neck on points, missed the play-off cut after their 27-26 loss to Montpellier.
Carter's starring role - he also kicked two conversions and a penalty - was the latest chapter in a roller-coaster season.
A high profile drink driving incident, lengthy time off with a groin injury, and dealing with the aftermath of a positive drugs test have all conspired to test the New Zealander's resolve.
Racing have had their own issues, with the damaging fall-out of their aborted merger with Stade Francais.
And their season looked to be ending on a miserable note when Bordeaux raced into a commanding lead with tries from Australian duo Adam Ashley-Cooper and Blair Connor.
Racing got back into the game with Yannick Nyanga's 56th minute touchdown and Leone Nakarawa's try four minutes later, before Carter completed the unlikely comeback.
"I'm very proud of the lads," said Carter.
"We showed that we have character after everything that's happened to us this year.
"We were very tense in the first half, we made far too many errors and Bordeaux were playing well.
"In the second half we managed to put our game in place. Our main aim was to reach the play-offs, and now anything can happen.
"We want to go even further, we have to believe in ourselves, it's a huge challenge."
The win saw them end the regulation season on 62 points, three clear of Stade Francais.
Toulouse, absent from the play-offs for the first time in 41 years, routed relegated Bayonne 40-12 to offer retiring France great Thierry Dusautoir a fitting send-off.
In the quarter-finals, third-placed Montpellier host Racing on May 20, with the winner going on to face La Rochelle in the last four.
Toulon, who beat Pau 32-12 to finish fourth, face fifth-placed Castres 24 hours earlier, with Clermont waiting for the winner in the semis.
Both the May 26/27 semi-finals are at Marseille's Stade Velodrome.
The Top 14 final is on June 4 at the Stade de France.