regex for arabic text
古いコメントを表示
i want to use regexp for arabic text. what i should do? use the unicode or what?
7 件のコメント
madhan ravi
2019 年 2 月 9 日
Please upload the string you have and what result are you expecting ?
abdullah alzaqebah
2019 年 2 月 11 日
Works for me (it seems).
str='محمود طالب نجيب ومحمد طالب كسول ';
pattern='محم[و]*د';
>> regexp(str, pattern)
ans =
1 18
>> regexp(str, pattern, 'match')
ans =
1×2 cell array
{'محمود'} {'محمد'}
abdullah alzaqebah
2019 年 2 月 11 日
This depends on the file encoding. Perhaps these might help:
abdullah alzaqebah
2019 年 2 月 11 日
編集済み: abdullah alzaqebah
2019 年 2 月 11 日
abdullah alzaqebah
2019 年 2 月 11 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!