Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,939 questions

51,876 answers

573 users

How to remove vowels from a string in VB.NET

1 Answer

0 votes
Imports System
Imports System.Text.RegularExpressions

Public Class Program
	Public Shared Function remove_vowels(ByVal str As String) As String
        Return Regex.Replace(str, "[aeiouAEIOU]", "")
    End Function

    Public Shared Sub Main()
        Dim str As String = "C++ C-Sharp PHP Java Python VB.NET Rust"
		
        Console.Write(remove_vowels(str))
    End Sub
End Class



' run
'
' C++ C-Shrp PHP Jv Pythn VB.NT Rst
'

 



answered Nov 21, 2022 by avibootz

Related questions

1 answer 111 views
111 views asked Nov 21, 2022 by avibootz
1 answer 111 views
111 views asked Nov 21, 2022 by avibootz
1 answer 105 views
1 answer 127 views
1 answer 93 views
1 answer 103 views
103 views asked Mar 27, 2022 by avibootz
4 answers 213 views
213 views asked Aug 18, 2019 by avibootz
...