Regular Expressions with BGP

Unanswered Question
Jun 12th, 2009
User Badges:

Hi,

i need the help of an expert Regular Expression guy :)

i just need to confirm the below regular expressions:


^111_[0-9]+$ -> AS111 directly connected customers

^111(_[0-9]+)?$ -> AS111 and/or its directly connected customers

^[0-9]+$ -> My Directly connected ASs

^[0-9]+(_[0-9])?$ -> My Directly connected ASs and/or their customers




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Jerry Ye Fri, 06/12/2009 - 11:45
User Badges:
  • Cisco Employee,

Hi Samer,


This is correct except the last one, it should be:


^[0-9]+(_[0-9]+)?$


HTH,

jerry

Actions

This Discussion