perl-Algorithm-Interval2Prefix

Generate prefixes from intervals

Taking an interval as input, this module will construct the smallest set of prefixes, such that all numbers in the interval will match exactly one of the prefixes, and no prefix will match a number not in the interval. E.g. all numbers in the interval 39967000 to 39980999 would be matched by the following set of prefixes: 39967 39968 39969 3997 39980 This type of conversion is particularly useful when working with telephony switching equipment, which usually determines call routing based on number prefixes rather than ranges. Note that the numbers in the interval must be of the same length for the result to make sense. The algorithm is much dependent on the number base, which defaults to 10. Other number bases can be specified explicitly. An additional function is provided, that will generate a regular expression string matching *only* those numbers in the interval.

There is no official package available for openSUSE Leap 15.3

Distributions

openSUSE Tumbleweed