A regular expression uses special characters—often referred to as metacharacters—to define a pattern that is compared with an input string. You can use regular expressions to filter the output of show commands and to define AS-path access lists and community lists to more easily filter routes.
For examples of using regular expressions with AS-path access lists and community lists, see JUNOSe IP Services Configuration Guide.