I found this error BGP As-Path Message on JunOS 9.x
This error “invalid character class in AS-path regex” appears right away after committing a change of BGP As Path Regular Expression
What I have done : Set new different AS-PATH name for the similar regular expression and remove the existing. If the message still appear, then you have to do the same thing till committing success
=====================================================
admin@JNX-JK2A# show | match 23698
as-path “VIPNET#1″ “.* 23698 46059″;
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# commit
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
‘as-path’
invalid character class in AS-path regex “.* 23698 46059|.* 24522 38774|.* 24532 38788|45298|.* 38147 18004|.* 10217 (38143|452
error: configuration check-out failed
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# set as-path VIPNET “.* 23698 46059″
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# delete as-path VIPNET#1
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# commit
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
‘as-path’
invalid character class in AS-path regex “.* 24522 38774|.* 24532 38788|45298|.* 38147 18004|.* 10217 (38143|45296|38777|9657)|
error: configuration check-out failed
admin@JNX-JK2A# commit
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
‘as-path’
invalid character class in AS-path regex “.* 24532 38788|45298|.* 38147 18004|.* 10217 (38143|45296|38777|9657)|.* 45701|.* 460
error: configuration check-out failed
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# show | match 24532
as-path INET “.* 24532 38788|45298″;
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# as-path
^
unknown command.
admin@JNX-JK2A# as-pathINET
^
unknown command.
admin@JNX-JK2A# set as-path INET#1 “.* 24532 38788|45298″
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# delete as-path INET
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# commit
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
‘as-path’
invalid character class in AS-path regex “.* 38147 18004|.* 10217 (38143|45296|38777|9657)|.* 45701|.* 46050|.* 4761 .*|.* 1792
error: configuration check-out failed
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# show | match 38147
as-path INOVANET “.* 38147 18004″;
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# set as-path as-path INOVANET#1 “.* 38147 18004″
error: syntax error: .* 38147 18004
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# delete as-path INOVANET
[edit policy-options as-path-group EXCHANGE-MEMBERS-TRANSIT]
admin@JNX-JK2A# commit
commit complete
=======================================
Below may also causing the error.
as-path MO-13 “.* 23947 38278 132104)”;