sure, you can. Just click "Filter" in the left bottom corner of the Quest offline editor and activate "Show Library Elements". Then you can check the build-in commands like put or removefrom and see how regular expressions can be used to create multi object pattern
^put (?<object1>.*) (on|in) (?<object2>.*)$