I’m trying to make small program which will tell mi which files are and which files aren’t included in my application. I tried to use this Regex:
#include (<|")([^\r\n;#">]*)(>|")
It works good but it also gets wrong output as correct:
#include <stdio.h"
This is impossible in C compiler.
So question is: does anybody know how to edit my regex correctly? Please help.
So instead of accepting
[<"]x[>"]you accept<x>or"x". Example.