作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我有这里描述的确切问题:
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.
但在我的情况下,我必须在 javascript 中执行此操作。
最佳答案
您的正则表达式只是一个小问题。尝试以下操作:
const input = "הֻסְמַק";
console.log(input)
console.log(input.replace(/[\u0591-\u05C7]/g, ''));
/*
$ node index.js
הֻסְמַק
הסמק
*/
关于javascript - 从javascript中的字符串中删除Niqqud,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37716995/
一直在努力删除niqqud (用于表示元音或区分希伯来字母表字母的替代发音的变音符号)。 例如,我有这个变量: sample1 <- "הֻסְמַק" 而且我找不到删除字母下方标志的有效方法。 试过
我想在 html 中设置与字母不同的 niqqud 字符样式。假设我希望希伯来字母 Bet 为黑色,而 Dagesh 为绿色。 html+css怎么实现? 这不完成任务: ב
我是一名优秀的程序员,十分优秀!