A list of LEX expressions

69 views Asked by At

Identify the lists of elements surrounded by <>, where elements can be : words formed with length multiply of 3 , even numbers with at least 3 digits . The lists contain at least 2 elements separated by ',' .

Correct lists:<189,abc,abcdef,130057,11681111,abc>

Incorrect lists : <897,8999><00003,109,2000>

I tried to solve this problem , using : word ([a-z][a-z][a-z])+ ; number ([1-9][0-9])+[13579]

but almost all the time it recognize bots lists , correct and incorrect .

I don't know how not to show the list if I find one wrong element . Thanks !

0

There are 0 answers