I have following strings
hdt-h
e2emin-n1
deep-p1
e2emax-s1
103-abc-p1
kru-02c-p1
xyz-ghg-r1
aaa-b20-p3
aaa-r24-p3
dfe-b2c-p2
hjq-b2b-p6
oru-xmn-p8
And I have following regex ^[a-z]{3}-[a-z][a-z1-9]{2}-p[1-9]$
which correctly matches last four strings in the example above.
However, now I want to display all these strings which are not matching the above regex. Basically I want to display the first 8 strings.
These 'incorrect' strings can take any form, there can be dashes, periods or commas inside it, and so on. That's why I need to find all these not fitting the correct form.
I tried ?! but didn't work form me.