regex fix for env parse