Read the passage from The Red Badge of Courage. Answer the question that follows.

A moment later the regiment went swinging off into the darkness. It was now like one of those moving monsters wending with many feet. The air was heavy, and cold with dew.

In the bolded line, which figurative language device is used to describe the group of soldiers?

Metaphor
Onomatopoeia
Personification
Simile

The figurative language device used to describe the group of soldiers in the bolded line is a metaphor.