Hello, tell me, please, a regular expression so that it skips lines of the form 25; 35; 15, or 15, but did not skip, for example, 15; - i.e. the semicolon can only separate numbers, but not stand at the end. Thank you in advance!

    1 answer 1

    Something like

    \d+(;\d+)* 

    should work. Maybe you need

     ^\d+(;\d+)*$ 

    (if the line is nothing more should be).