Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $matchme =
- "/^
- (?:
- ((?:[CSIRMBD]\*?)|(?:O\*?\s+(?:IA|N1|N2|E1|E2)?)|(?:i\*?\s+(?:ia|L1|L2)?))
- \s+
- ((?:(?:25[012345]|2[01234]\d|1?\d?\d)\.){3}(?:25[012345]|2[01234]\d|1?\d?\d))
- \s+
- ((?:(?:25[012345]|2[01234]\d|1?\d?\d)\.){3}(?:25[012345]|2[01234]\d|1?\d?\d))
- )?
- \s+
- (?:(?:(?:(?:\[\d+\/\d+\]\s+via\s+))((?:(?:25[012345]|2[01234]\d|1?\d?\d)\.){3}(?:25[012345]|2[01234]\d|1?\d?\d)),\s+(?:\d+:\d\d:\d\d,\s+)?)|is\s+directly\s+connected,\s+)
- (\w+)/mx";
- /* array indicies:
- * 0: full match
- * 1: type
- * 2: network
- * 3: mask
- * 4: nexthop
- * 5: interface */
Add Comment
Please, Sign In to add comment