I want to remove number containing between 6 and 8 digits, so the regex I am using is: \b\d{6,8}
It works fine, but, it if I have two numbers separated by an underscore (_), for example 1234567890_12345678901234567890 I want it removed as well. I must use \b (boundary).
To me it seems like a condition:
match numbers between 6 and 8 digit, but if you see two numbers separated by an underscore match them too (regardless of the number of digits in each number).
match: 12345678
match: 12345678934567_1234567890123456789
match: 123_23
no match: 12345
I need a single regex that handles both cases.
Thanks a lot.