fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. VowelCount("The quick brown fox jumps over the lazy dog.")
  6. End Sub
  7.  
  8. Shared Sub VowelCount(ByVal UserInput As String)
  9. Console.WriteLine("There are {0} vowels", System.Text.RegularExpressions.Regex.Matches(UserInput, "[aeiou]", System.Text.RegularExpressions.RegexOptions.IgnoreCase).Count.ToString())
  10. End Sub
  11. End Class
Success #stdin #stdout 0.07s 24472KB
stdin
Standard input is empty
stdout
There are 11 vowels