OH observations of molecular complexes in Orion and Taurus