remove Niqqud from string in javascript

I have the exact problem described here:

removing Hebrew "niqqud" using r

Have been struggling to remove niqqud ( diacritical signs used to represent vowels or distinguish between alternative pronunciations of letters of the Hebrew alphabet). I have for instance this variable: sample1 <- "???????"

And i cannot find effective way to remove the signs below the letters.

But in my case i have to do this in javascript.

Based of UTF-8 values table described here, I have tried this regex without success.



Just a slight problem with your regex. Try the following:

const input = "???????";
console.log(input.replace(/[\u0591-\u05C7]/g, ''));

$ node index.js


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us Javascript

©2020 All rights reserved.