Jennifer Lopez will play a self-help expert on an episode of the CBS comedy “How I Met Your Mother” in March.


Jennifer Lopez will play a self-help expert on an episode of the CBS comedy “How I Met Your Mother” in March.

The actress-singer portrays Anita Appleby, a no-nonsense author who tries to “train” men into better behavior in relationships. Her target is Neil Patrick Harris’ playboy-bachelor character, Barney.

: Appleby makes it her mission to break him.

Carter Bays, the show’s co-creator, joked Wednesday about Lopez’s appearance: “We’re looking forward to a week of revealing outfits and sexy dance moves the likes of which this show hasn’t seen since Regis Philbin guest-starred.”

The exact date of Lopez’s episode hasn’t been set. The Monday-night comedy recently reached a milestone with its 100th episode.