Regular expression
Filter subscription nodes using regular expressions
Common expressions
any value
.*- All nodes will match as long as they have names, this does not need to be explained
Contain
.*(A)- If the node name contains ʻA
, such as
.*(IPLC), filter nodes with ʻIPLC
in the name
- If the node name contains ʻA
or
(A)|(B) or ^.*(A|B)- Node names containing ʻA
or
B, such as
(IPLC)|(IEPL), filter nodes with ʻIPLC
or ʻIEPL` in the name
- Node names containing ʻA
Without
^((?!A).)*$ or ^(?!.*?A)- The node name does not contain ʻA
, such as
^(?!.*?x1.5), and the node name does not contain
x1.5`
General method of combination
- The node name does not contain ʻA
containing
andcontaining
- (Hong Kong).*(IPLC), to filter nodes whose name contains both
Hong Kong
and ʻIPLC`
- (Hong Kong).*(IPLC), to filter nodes whose name contains both
Contains
andContains
andContains
- (Hong Kong).*(tunnel).*(x1), to filter nodes whose names contain both
Hong Kong
andtunnel
andx1
- (Hong Kong).*(tunnel).*(x1), to filter nodes whose names contain both
With
andWithout
- ^(?!.*?x1.5).*(Hong Kong), to filter nodes whose name does not contain
x1.5
but containsHong Kong
- ^(?!.*?x1.5).*(Hong Kong), to filter nodes whose name does not contain