Although the great majority of the Army of the Potomac were volunteer regiments furnished by the states, there was a core of United States Army Regulars in all three branches of service. Parts of 13 infantry regiments, 4 cavalry regiments and 17 batteries of U.S. Regulars were at the Battle of Gettysburg, along with two regiments of United States Sharpshooters.