Checking if a line in a file contains user.Handle and '-r'+any single digit number
If I see it correctly, you could already simplify your code by saying

if (line.Contains(user.Handle) &amp;&amp; !user.Handle.Contains("-r") &amp;&amp;
    (line.Contains("-r1") || line.Contains("-r2") || ... line.Contains("-r9"))


That should be basically the same thing as the above. Now when you look at the last part, you could simplify it to a regular expression -r\d (not sure if - needs to be escaped here) So the final version could look like this:

if (line.Contains(user.Handle) &amp;&amp; !user.Handle.Contains("-r") &amp;&amp;
    Regex.IsMatch(line, "-r\\d"))


did I get your question? Did I miss anything?