I want to create regular expression which matches while(true) loop in which body is not used word 'argv'
Example 1:
while(true){
for(int i = 0; i < argc; i++) printf("%s",argv[i]);
}
argv is used in the body of while loop - reg ex should not match this
Example 2:
while(true){
for(int i = 0; i < 5; i++) printf("%d",i);
}
argv is not used in the body of while loop - reg ex should match this.
Till now i have just this regular expression:
while\s*\(\s*true\s*\)\s*\{ there_should_be_something \}
I dont know what to replace with there_should_be_something
Thanks a lot