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
Output:
************************************************************************
C Program
Online Compiler
************************************************************************
C++ Program
Online Compiler
************************************************************************
C# Program
************************************************************************
PHP Program
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>
************************************************************************
PYTHON Program
************************************************************************
Comments
Post a Comment