View Full Version : VB.net Vowels
03-23-2012, 02:24 PM
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.
03-23-2012, 02:56 PM
03-24-2012, 05:46 PM
Here's one way, using regular expressions...
Dim source As String = "Hello", target As String = ""
For Each m As Match In Regex.Matches(source, "[aeiou]")
target &= m.Value
10-11-2012, 10:41 AM
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 :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.