There's an input of strings that are composed of only digits, i.e., integer numbers. How can I write a regular expression that will accept all the numbers except numbers 1, 2 and 25?
I want to use this inside the record identification of BeanIO (which supports regular expressions) to skip some records that have specific values.
I reach this point ^(1|2|25)$
, but I wanted the opposite of what this matches.
atoi()
or similar and compare the actual numbers, or even just compare strings directly. – Comatosenumbers
it only matches characters. A seven digit character string will still be just an int. – Properlyif ( matched ) then fail
– Properly