Hi all guy... I have the next problem... In my code I need that program recognize the letters accented: à è ì ò ù, like a normal vowels and dont a consonant!! I have insert
Sadly enough you won't even get the price for "least information possible" ... there are problem descriptions that are worse
Nevertheless: Please show us your magic code that recognizes the accented letters as consonants. How else should we know? Even my crystal ball got a headache from this ...
The correct English is "Nothing doesn't never happen". = "Nothing happens".
I think he means that he has defined aeiou as vowels, and other letters as consonants, but now has run up against accented letters which he wants to treat as vowels.
Code:
<script type = "text/javascript">
var x= "à á è";
if (/^[àèìòù]/.test(x)) {
alert ("String contains an accented character");
}
</script>
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
The correct English is "Nothing doesn't never happen". = "Nothing happens".
I think he means that he has defined aeiou as vowels, and other letters as consonants, but now has run up against accented letters which he wants to treat as vowels.
Code:
<script type = "text/javascript">
var x= "à á è";
if (/^[àèìòù]/.test(x)) {
alert ("String contains an accented character");
}
</script>
Ok, but have a problem, the program read the "à è ' ò ù" than a "?"... And then return is null because don't recognize letters accented!!!
It's for <meta> error??
Ok, but have a problem, the program read the "à è ' ò ù" than a "?"... And then return is null because don't recognize letters accented!!!
It's for <meta> error??
Sorry, not a clue what you mean. You must express yourself in English more clearly.
But there was a typo in my script in Post #3 - should be
Ok, so, I found the final problem. I do convert the letters accented: "à" "è" "é" "ì" "ò" "ù", to the normal letters aeiou!! Because my program read the letters accented with consonants and I don't would this!!!
Now is it more clear?
Ok, so, I found the final problem. I do convert the letters accented: "à" "è" "é" "ì" "ò" "ù", to the normal letters aeiou!! Because my program read the letters accented with consonants and I don't would this!!!
Now is it more clear?
So you are using replace() to convert accented letters into their non-accented equivalents? But why do you not simply add the accented characters to your list of vowels?
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
So you are using replace() to convert accented letters into their non-accented equivalents? But why do you not simply add the accented characters to your list of vowels?
Because I don't say, if accented letters is vowels or consonants