Rep is an x86 assembly opcode prefix, which can be put in front of most (all?) other instructions.

When used, the following instruction gets executed cx times, or (ecx) times if running in 32bit mode.

Other variants include repne/repnz which executes the following instruction cx times or until the zero flag is cleared.