The closest to this that I can think of, is creating and applying a configuration group. Something like this:
[edit groups FF-MATCH-GROUP]
lab@vMX-1# show | display set relative
set filter <*> term <*> from protocol tcp
set filter <*> term <*> from protocol udp
set filter <*> term <*> from destination-port smtp
set filter <*> term <*> from destination-port telnet
set filter <*> term <*> from destination-port domain
[edit firewall family inet filter test]
lab@vMX-1# show
term 1 {
apply-groups FF-MATCH-GROUP;
}
[edit firewall family inet filter test]
lab@vMX-1# show | display inheritance
term 1 {
##
## 'from' was inherited from group 'FF-MATCH-GROUP'
##
from {
##
## 'tcp' was inherited from group 'FF-MATCH-GROUP'
## 'udp' was inherited from group 'FF-MATCH-GROUP'
##
protocol [ tcp udp ];
##
## 'smtp' was inherited from group 'FF-MATCH-GROUP'
## 'telnet' was inherited from group 'FF-MATCH-GROUP'
## 'domain' was inherited from group 'FF-MATCH-GROUP'
##
destination-port [ smtp telnet domain ];
}
}
HTH,