COUNT THE NUMBER OF VOWELS IN A STRING USING REGEX

************************************************************************ 

W.A.P TO COUNT THE NUMBER OF VOWELS IN A STRING USING REGEX

************************************************************************  

REGEX MEANS REGULAR EXPRESSION

JAVA Program







   



  
Online compiler

Output:


************************************************************************ 

C Program



Online Compiler 

 

************************************************************************ 

C++ Program

Online Compiler

************************************************************************ 

C# Program


 
 
Output:

************************************************************************ 

PHP Program


Online Compiler

Php is a server side scripting language.

************************************************************************ 

JAVASCRIPT Program

 <script type="text/javascript">
var string = prompt("Enter a string: ");
const reg = /[aeiou]/gi;
var chars = string.match(reg);
console.log(chars.join(','));
console.log(chars.length);



</script>

Online Compiler

************************************************************************ 

PYTHON Program

 

Online Compiler: 

************************************************************************  






Comments

Popular posts from this blog

PALINDROME NUMBER

CONVERT CARTESIAN COORDINATES TO POLAR COORDINATE

FIBONACCI SERIES