Regex to exclude numeric

Dear All,

My regex is like below. Its says all the number in coloum is include.

11666
11777
11888

^(?\: (0|11)(666|777|888))\\d+$

How to exclude all the numeric that not mentioned in above regex.

Regards,

Some like this?

cat file
54324
13413
11666
11777
11888
35635
45674
0666
awk '!/(0|11)(666|777|888)/' file
54324
13413
35635
45674

If the column you provided for exclusion is added to a file called "pattern". Use below

grep -wvf pattern file

Hi Jotne,

Thats correct but how to write in regex ?

Thanks,