Remove vowels from a string


#1

Hi,

I am trying to remove vowels from a string. How to do that?

str = “todayIS A Great DAy What do you Say”
arr = {“A”, “E”, “I”, “O”, “U”}

And I tried to use for each loop, but not sure how to write the VB Expression in condition

See attachment. Thanks in advance!!
removeVowels.xaml (9.5 KB)

Regards,
Lavina


#2

Hello.

If you use a Regex pattern to Replace the characters, it might look something like this:

System.Text.RegularExpressions.Regex.Replace("todayIS A Great DAy What do you Say","[AEIOUaeiou]","")

#3

@lavint Check attached file is as per you requriement

removeVowels.xaml (10.1 KB)


#4

Thanks all!