I am trying to replace special characters except numbers with the space from a string which could be in English or Arabic language.
I have used the below regex which works perfectly for English language by replacing special characters with space from the string but, in Arabic language it replace the Arabic characters too.
data[i].replace(/[^\w\s]/gi, '');
Please help me to find the regex which will replace the special characters with space but not English and Arabic characters and numbers. Thank you.