in reply to regex help

Hi;

you should at least explain better what you really need, provide some context or some code that fails to do what you want. Without any detail, your problem might be solved with something as simple as:

while (<$fh>) { next if /23456/; # further processing of lines not containing 23456 }
Or it could be more complicated, we cannot know.