Thx you very much :*
El sáb., 18 ago. 2018 5:43, Sander Elias <[email protected]> escribió:
> Hi Belen,
>
> Good question! I learned a few things :). For example, what you want to do
> is called accent folding.
>
> This will do it:
>
> cont stringFolded = string.normalize('NFD').replace(/[\u0300-\u036f]/g, "");
>
> the normalize('NFD') will split out the accents in the string. when that
> is done the regex matches anything that's not a 'char' and removes it.
> hope this helps,
>
> Regards
> Sander
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.