Not sure how to combine a selector like this, but I think that if you use the filter function, you can filter out the first query:
Ext.DomQuery.filter(Ext.query('input:not([id*=foo])','SomeForm'),'input:not([id*=bar])');
, :
Ext.query('input:not([id*=foo]):not([id*=bar])');
, :
Ext.query('input:not([id*=foo]):not([id*=bar])','SomeForm');
, ExtJS .