yt.units.unit_object.Unit.find

Unit.find(query, group=False)

Find all subexpressions matching a query.