Those taking the BART train between Lafayette and San Francisco have been potentially exposed to measles as a commuter was diagnosed with the disease in Contra Costa.