wildcard string matching

Ondrej Zajicek santiago at crfreenet.org
Tue Jan 28 16:31:27 CET 2020


On Mon, Jan 27, 2020 at 07:05:33PM -0500, Robert Blayzor wrote:
> Does pattern matching work with wildcards like below? I tried searching
> the docs for pattern/wildcard/regex but could not find a definitive
> answer. It looks like this works with "interface" wildcards....
> 
> 
>       if (proto = "global_null*") then {
>           bgp_community.add ((MYAS, 888));
>       } else {

It works if you use match operator ~. E.g.:

  if proto ~ "global_null*" then ...

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list