Patrick Murphy and Kathleen Kane, the Democratic candidates for Pennsylvania attorney general, have a lot in common.

Both are lawyers. Both are married and each has two children. They share an Irish-American heritage, a Roman Catholic faith. They agree in principle on many issues and are quick to criticize the Republican leadership in Harrisburg for laws and legislation that clash with Democratic principles.

But it is the candidates’ contrasting backgrounds and styles that will decide which of them becomes the nominee.

With two weeks left before the April 24 primary, Murphy and Kane had raised $4.6 million to define themselves and sustain their TV ad campaigns they launched in late March, according to campaign finance reports filed Friday.

Murphy, 38, has the broader resume _ five years in the Army’s Judge Advocate General Corps and two terms representing a suburban Philadelphia district in the U.S. House of Representatives.

Kane, 45, worked for the Lackawanna County district attorney’s office for nearly 13 years, prosecuting thousands of cases involving crimes ranging from public corruption to murder. She specialized in cases involving abuse of children and senior citizens, and headed the office’s insurance-fraud unit. She left in 2007 to work on Hillary Clinton’s campaign for president.