I have a file : site.log
19 www.mysite.org
300 cod.mysite.org
100 www.newfile.com
199 py.mysite.org
45 python.mysite.org/als
45 mysite.org/als/4/d
I would like to go through all the poems containing the string mysite.org
and get the number from the beginning of the text and sum all numbers in front of the given text
File.ReadLines(filePath).Where(x => x.Contains("mysite.org")).SelectMany(...));