In future printings of his best-selling biography, Keanu Reeves-related jabs will be removed, according to Matthew Perry, who also pledges to apologize to the actor “if I run into the guy.”

The 53-year-old Friends actor wrote an autobiography titled Friends, Lovers, and the Big Terrible Thing last year, which frequently made fun of Reeves.

Perry questioned on two occasions why The Matrix star is still alive when other stars perish.

In the book, Perry comments on the death of River Phoenix, who was a close friend of Reeves before he died of a drug overdose at the age of 23.

Perry’s first film, the 1988 movie A Night in the Life of Jimmy Reardon, co-starred Phoenix.

“Why is it that the original thinkers like River Phoenix and Heath Ledger die, but Keanu Reeves still walks among us?” Perry wrote in the book.

He also made a similar dig at Reeves when discussing Chris Farley, who died of an overdose in 1997.

Describing learning that Farley had died of a drug overdose, Perry wrote: “I punched a hole through Jennifer Aniston’s dressing room wall when I found out. Keanu Reeves walks among us.”

During an appearance at the Los Angeles Times Festival of Books on Saturday, Perry said: “I said a stupid thing. It was a mean thing to do.

“I pulled [Keanu Reeves’s] name because I live on the same street. Any future versions of the book will not have his name in it.”

Perry said he hasn’t had the opportunity to apologise to Reeves in person.

“If I run into the guy, I’ll apologise,” he said. “It was just stupid.”

After his book’s release, Perry told People in a statement: “I’m actually a big fan of Keanu. I just chose a random name, my mistake. I apologise. I should have used my own name instead.”