Skip to content

Quick Javascript RegEx to clean Arabic texts from diacritics.

Notifications You must be signed in to change notification settings

hubail/TashkeelRemover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Quick Javascript RegEx to clean Arabic texts from diacritics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published