Guest User

Untitled

a guest
Jun 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $matchme =
  2. "/^
  3. (?:
  4. ((?:[CSIRMBD]\*?)|(?:O\*?\s+(?:IA|N1|N2|E1|E2)?)|(?:i\*?\s+(?:ia|L1|L2)?))
  5. \s+
  6. ((?:(?:25[012345]|2[01234]\d|1?\d?\d)\.){3}(?:25[012345]|2[01234]\d|1?\d?\d))
  7. \s+
  8. ((?:(?:25[012345]|2[01234]\d|1?\d?\d)\.){3}(?:25[012345]|2[01234]\d|1?\d?\d))
  9. )?
  10. \s+
  11. (?:(?:(?:(?:\[\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+)
  12. (\w+)/mx";
  13. /* array indicies:
  14. * 0: full match
  15. * 1: type
  16. * 2: network
  17. * 3: mask
  18. * 4: nexthop
  19. * 5: interface */
Add Comment
Please, Sign In to add comment