fork(1) download
  1. import re
  2. s = '{{ SITE_AGGREGATE_SUBNET }}.3 remote-as {{ BGP-AS }}'
  3. print([x.strip() for x in re.findall(r'{{(.*?)}}', s) if '-' in x])
Success #stdin #stdout 0.04s 9584KB
stdin
Standard input is empty
stdout
['BGP-AS']