Nothing built in, as far as I know. One could write up robust functions to do this (using find() or a variant).