This paper describes 5'-nuclease PCR assays for detecting eight O-serogroups, H7 flagellar antigen and stx genes from the Shiga toxin-producing Escherichia coli (STEC) associated with the world's most frequent clinical cases. A single set of primers was used to detect the genes stx1 and stx2 in the same reaction by 5'-nuclease PCR. Serotyping by 5'-nuclease PCR of STEC was based on the selection of primers and probes targeting the O-antigen gene clusters of E. coli O26, O55, O91, O111, O113, O157, the eae gene of E. coli O103, the O-island 29 of E. coli O145, and the flagellar H7 antigen gene. Results obtained on a collection of 190 strains indicate that the 5'-nuclease PCR assays used here could serve as a basis for rapid specific stx, O and H7 typing of these major pathogenic serogroups of E. coli. This work provides sensitive and specific tests for the rapid, reliable detection of the main pathogenic E. coli O-serogroups of major public health concern.