Click to See Complete Forum and Search --> : Is it possible to quit tildes from a word


arturion
09-23-2003, 12:18 PM
I have a searcher where I want it to search a word without the tilde

for example, the word "méxico" has a tilde. Is there a function to quit all tildes and leave it just as "mexico"? Which function is this?

Charles
09-23-2003, 12:25 PM
That's an acute accent not a tilde and you have to replace them one character at a time.

<script type="text/javascript">
<!--
alert ('m\xe9xico'.replace(/\xe9/g, 'e').replace(/\xc9/g, 'E'));
// -->
</script>