CFU/mL, the suggested approach was successfully verified to analyze E.coli at various concentrations. Additionally, after examining E.coli samples from pure water and pure milk, the recoveries ranged between 95.76 and 101.20%, demonstrating the method's applicability. Additionally, it provides a feasible research direction for the detection of pathogenic bacteria causing other diseases using the CRISPR/Cas gene editing system.