[j-nsp] Regular expressions in CLI.

Phil Shafer phil@juniper.net
Tue, 03 Sep 2002 17:28:49 -0400


David Martinez CSIC RedIRIS writes:
>ender@dub1> show route aspath-regex ^1299.* | match (\+|\*)
>                                                     ^
>syntax error.
>	Nice error.

Yup, the UI is parsing this command line as:

 the command:
   show route aspath-regex ^1299.*
 piped through:
   match (\+
 piped through:
   \*)

which should have given you a message like:

ender@dub1> show route aspath-regex ^1299.* | match (\+|\*)
                                                        ^
syntax error, expecting <command>.

since the command '\*)' is not valid. Not sure this would
have been much more helpful though.

Thanks,
 Phil