Has anyone got a clue as to whether it is possible to construct a regular expression to show only those prefixes who have an equal (or unequal) number of AS hops in their paths. These prefixes are coming from 2 different ISPs so may differ in terms of actual AS path, but that doesn't matter, it's the number of AS traversed I care about.
Thanks in advance, kind regards.
RegExp always evaluates prefixes one by one.
You can match prefixes of the specific length. E.g.:
^[0-9]+_[0-9]+_[0-9]+$ Would match all prefixes with AS PATH length of 3.