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!