Guest
Public paste!

Untitled

By: a guest | Nov 18th, 2008 | Syntax: VB.NET | Size: 0.42 KB | Hits: 272 | Expires: Never
Copy text to clipboard
  1. Imports System.Text.RegularExpressions
  2. Imports System.IO
  3. Module Module1
  4.     Sub Main()
  5.         Dim stextbox As String = "trees"
  6.         Dim sletters As String = Regex.Replace("ABCDEFGHIJKLMNOPQRSTUVWXYZ", "[" & stextbox & "]", "", RegexOptions.IgnoreCase)
  7.         Dim cletters As Char() = sletters.ToCharArray()
  8.         For Each c In cletters
  9.             Console.WriteLine("%{0}%", c)
  10.         Next c
  11.     End Sub
  12. End Module