fork(29) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = "Unneeded text <strong>Needed Text</strong> More unneeded text";
  8. Console.WriteLine(s.Substring(s.IndexOf("<strong>") + "<strong>".Length, s.IndexOf("</strong>") - s.IndexOf("<strong>") - "<strong>".Length));
  9. }
  10. }
Success #stdin #stdout 0.05s 33752KB
stdin
Standard input is empty
stdout
Needed Text