That's clear as mud. In 13452234567 should the code find 34522 and in 123456 12345 ? Then what is the rule/principle of the search? If "Find in the sequence all numbers consisting of 4 or 5 digits, whose first 4 digits have at least 1 digit 2", then 13452234567 contains 3452, 2345, 23456, correct? Ok, never mind! I'm getting too obsessed with the topic and stressing you with my questions.