2) .{2,} construct allows any symbol to be repeated 3 times or 5
times, i.e. uneven number of times. This should be forbidden in this
case.
So, I suggest
^([0-9a-z][0-9a-z])*8F([0-9a-z][0-9a-z])*$
--
regards, Eugeny
Nope. [^0x1f] will be treated as any symbol which is not a zero, not a
literal "x", not 1 and not "f"
[^\x1F] is the right syntax for what you meant.
> How do write a RE which would mean if 1f is not present ? In other words if the patter 1f
> is not matched.
>
1st approach
Check if 1F is present. And if it is present do nothing. Else do what you need.
2nd approach:
^[^\x1F]*$
will match a set of symbols each and every of them is not 1F
--
best regards, Eugeny