N
NeoAsimov
Hello,
I want to select specific lines of C++ source codes.
There is the pattern that I want to match:
I want a line that have a "..." string in but not any "//" characters.
Exemple:
public void Foo("test") [This one match]
// public void Foo("test") [This one doesn't match]
I tested many things but none works....
there are some of my tests:
^([^//])*("[^"]*")$
^([^//]|[^"])* "[^"]*"
^([^//]*|[^"]*)*"[^"]*"
^([^//]*|[^"]*|$)("[^"]*")
^[ \t]*[^//]*("[^"]*")*$
Is this really possible to do what i want?
Thank alot for your help/hints,
Salutations,
I want to select specific lines of C++ source codes.
There is the pattern that I want to match:
I want a line that have a "..." string in but not any "//" characters.
Exemple:
public void Foo("test") [This one match]
// public void Foo("test") [This one doesn't match]
I tested many things but none works....
there are some of my tests:
^([^//])*("[^"]*")$
^([^//]|[^"])* "[^"]*"
^([^//]*|[^"]*)*"[^"]*"
^([^//]*|[^"]*|$)("[^"]*")
^[ \t]*[^//]*("[^"]*")*$
Is this really possible to do what i want?
Thank alot for your help/hints,
Salutations,