0 regex \^#[[:space:]]*ifdef found #ifdef >0 regex \^#[[:space:]]*endif$ \b, found #endif$ # >0 default x \b, did not find #endif$