Sounds like you want(?(?!PATTERN).)*
Have you considered(?(?!^#\s*else\b).)*
#ifdef X ...a... # ifdef Y ...b... # else ...c... # endif ...d... #else ...e... # ifdef Y ...f... # else ...g... # endif ...h... #endif
In reply to Re: assertions help
by ikegami
in thread assertions help
by DavidFerrington
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |