Home Entertainment

Josh Charles Marries Sophie Flack

09/08/2013 at 02:30 PM EDT

Josh Charles Marries Sophie Flack

Josh Charles and Sophie Flack

Astrid Stawiarz/Getty

Looks like Josh Charles has found himself a good wife.

The actor married his longtime girlfriend Sophie Flack on Friday in New York City, his rep confirms to PEOPLE.

A former dancer with the New York City Ballet, Flack, 30, is the author of Bunheads.

Charles, 41, stars as lawyer Will Gardner on The Good Wife.

On Aug. 31, Flack posting a snapshot of a tasty-looking pasta dinner to Instagram.

"Who needs a penis hat when you have this? #bachelorette2013," she wrote.

Reporting by MONICA RIZZO