regex for arabic text
Afficher commentaires plus anciens
i want to use regexp for arabic text. what i should do? use the unicode or what?
7 commentaires
madhan ravi
le 9 Fév 2019
Please upload the string you have and what result are you expecting ?
abdullah alzaqebah
le 11 Fév 2019
Works for me (it seems).
str='محمود طالب نجيب ومحمد طالب كسول ';
pattern='محم[و]*د';
>> regexp(str, pattern)
ans =
1 18
>> regexp(str, pattern, 'match')
ans =
1×2 cell array
{'محمود'} {'محمد'}
abdullah alzaqebah
le 11 Fév 2019
This depends on the file encoding. Perhaps these might help:
abdullah alzaqebah
le 11 Fév 2019
Modifié(e) : abdullah alzaqebah
le 11 Fév 2019
abdullah alzaqebah
le 11 Fév 2019
Réponses (0)
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!