fork download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Globalization;
  7. using System.Text.RegularExpressions;
  8. using System.IO;
  9. using System.Diagnostics;
  10. using System.Net.Mail;
  11. using System.Web;
  12.  
  13. namespace Enum
  14. {
  15. class Program
  16. {
  17. static void Main(string[] args)
  18. {
  19. string result = "Overfishing, erosion and warmer waters are feeding jellyfish blooms in coastal regions worldwide. And they're causing damage";
  20. var array = result.Split(new string[] {",", ".", " "}, StringSplitOptions.RemoveEmptyEntries);
  21. foreach (var item in array)
  22. {
  23. if(item.Length >= 4 && item.Length < 10)
  24. Console.WriteLine(item);
  25. }
  26. }
  27. }
  28. }
  29.  
Success #stdin #stdout 0.05s 33944KB
stdin
Standard input is empty
stdout
erosion
warmer
waters
feeding
jellyfish
blooms
coastal
regions
worldwide
they're
causing
damage