Which command will match communities 101:111, 111:1, and 999:1111?
A.
set policy-options comminity COMMUNITY members ”^… :1?”
B.
set policy-options community COMMUNITY members ”^1.*:1+”
C.
set policy-options community COMMUNITY members [”^1.1:1?” 999:1111]
D.
set policy-options community COMMUNITY members ”^… :1+”
Explanation:
Period (.)—A wildcard character that matches any single digit in an AS number.
+ stands for one or more repetitions of term.
? stands for zero or one repetition of term.
http://www.juniper.net/documentation/en_US/junos15.1/topics/usage-guidelines/policy-definingbgp-communities-and-extended-communities-for-use-in-routing-policy-match-conditions.html#id-10243437
Anyone knows the answer for this one? I think this should be B
Answer is D
check here: https://regex101.com
its D