Since you are not indicating whether this is in addition to any other characters (or in the middle of a larger line), I have included the logic here to indicate what you need to match the numeric part of the line, This should lead you there. We create a range for the second number we are looking for, only for those characters. Then we compare it with other ranges like or :
(2[3456789]|[3456][0-9]|7[012345])
As noted, you can also do this, since subbands are also accepted (depends on the REGEX implementation in the application you use):
(2[3-9]|[3-6][0-9]|7[0-5])
Based on the name, you will change the last 5 to 9 to go from 75-79:
(2[3-9]|[3-6][0-9]|7[0-9])
If you are trying to match these numbers as a string (from start to finish), you should use the ^ and $ modifiers to indicate the start and end of the string.
There is an excellent technical link to Regex ranges here:
http://www.regular-expressions.info/numericranges.html
If you use something like grep and try to match strings containing a number with different content, you can do something like this for ranges through 79:
grep "[^0-9]?(2[3-9]|[3-6][0-9]|7[0-9])[^0-9]?" folder
source share