The question mark (?) matches zero or one instances of a literal. For example: ip as-path access-list 27 permit ^(850)?$ This filter matches an AS_PATH in which there is either a single AS number 850 or an empty list. Note the use of parentheses here, to show that the metacharacter applies to the entire AS number. If the expression 850? is used, the metacharacter applies only to the last character. The expression would match 85 or 850. |