MarvinSketch allows you to specify R-groups within your molecule.

An R-group is a variable representing a user-defined list of structures. These R-group definitions can be applied in R-group queries.
Using R-groups in a query structure can allow you to quickly search for a wide range of substructure hits using only a single query.

For more details on how to draw R-group queries click here.