safe fallback when boost-regex is not found