title: Use Regex in this Linq query?
body: <p>I am using this Linq to find the highest int in a list, so that I can increment it and add it to the end of the next string:</p>
  
  <pre><code>var CableNumber = CList.Select(v =&gt; int.Parse(v.CableNumber.Substring(n))).Max();
  </code></pre>
  
  <p>However, because the strings aren't a fixed length, I was thinking of inserting a <code>Regex.Match</code> in there, possibly something like:</p>
  
  <pre><code>n = Regex.Match(CableNumber, @"\d{3}", RegexOptions.RightToLeft);
  </code></pre>
  
  <p>To specify; the only format the input strings follow is that it will always have a 3 digit number on the end, possibly followed by a single letter. Some examples:</p>
  
  <pre><code>CP1-P-CP2-001 (001)
  MOT1PSP2023A (023)
  TKSP3-C-FLT2-234-A (234)
  </code></pre>
  
  <p>How could I implement this? Is there a better way?</p>