WASHINGTON - (AP) - President Barack Obama says he has acceptedthe resignation of Gen. Stanley McChrystal with regret, but iscertain that it is the right decision for the country's nationalsecurity and the future of the U.S. mission in Afghanistan.

Speaking in the Rose Garden, Obama says McChrystal's bitingcomments about the president and his aides in a magazine articledid not meet the standards of conduct for a commanding general.

Obama named Gen. David Petraeus to assume McChrystal's role asthe top U.S. commander in Afghanistan. He says the move will allowthe U.S. to maintain leadership and momentum in the war.

Obama made the announcement following a private meeting withMcChrystal and a separate meeting of his national security staff.