I have very BIG .txt file and PHP script not enough - very slow. Welll.... I have the combinations in the document (.txt) 01 02 07 14 32 37 01 02 07 14 32 36 01 02 07 14 32 35 01 03 05 06 07 44 01 03 05 06 07 43 01 03 05 06 07 42 01 04 05 06 07 16 PHP: $find= array(array(01, 02, 14, 37), array(01, 03, 06, 07, 43)); Script searches for the document and if found numbers (array) then delete/remove this combination - line. Example: Script searching and found: 01 02 07 14 32 37 and 01 03 05 06 07