I am playing with VB .net and want to write a small prog that will take a string and remove the vowels and place them in the order they were removed into a label.
Removing the vowel was easy with the MID but how do I store them in a variable to be used later.
This what I am trying with no success so far, PLEAZE HELP.
Last edited by hans_cellc; 03-23-2012 at 02:12 PM..
Imports System.Text.RegularExpressions
Module Module1
Sub Main()
Dim source As String = "Hello", target As String = ""
For Each m As Match In Regex.Matches(source, "[aeiou]")
target &= m.Value
Next
Console.WriteLine(target)
End Sub
End Module
Looking at the above code, you could make it a bit better by using sub routines and then it will be easier to do separate things in the program good luck