I need to find strings as follows in a file:
_["Some text"];
or
_.Plural(1, "Some text", "Some text plural);
I am looping file text lines using:
using (StreamReader reader = File.OpenText(file)) {
String line;
while ((line = reader.ReadLine()) != null) {
}
}
In each line I need to get:
"Some text"
OR
"Some text", "Some text plural"
And in both cases I need to get the line number inside the file for each instance.
How can I do with Regex?