Updating regex to fix conditional mangling

fixes #263 ??