Quick Javascript RegEx to clean Arabic texts from diacritics.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
_adr.css
_adr.js
demo.html

README.md

TashkeelRemover

Just a quick Javascript RegEx to clean Arabic texts from diacritics.

As demonstrated in the included html file, the magic is only with this line

str.replace(/[\u064b-\u064f\u0650-\u0652]/g, "")

It identifies two Unicode ranges of diacritics, and well, removes the matched characters.