Posted by Anonymous on Tue 18 Nov 17:07
report abuse | download | new post
- using System;
- using System.Text.RegularExpressions;
- namespace myapp
- {
- class Class1
- {
- static void Main(string[] args)
- {
- String stextbox = "trees";
- String sletters = Regex.Replace(@"ABCDEFGHIJKLMNOPQRSTUVWXYZ", @"[" + stextbox + "]", "", RegexOptions.IgnoreCase);
- char[] cletters = sletters.ToCharArray();
- foreach (char c in cletters)
- {
- Console.WriteLine("%{0}%", c);
- }
- }
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.