regexp command expr(?!test) assertion fail
18 ビュー (過去 30 日間)
古いコメントを表示
While using regexp command in following example :

I am expecting result to be 'Retiring' 'lovable' 'runtastic' but instead I am getting the following result:

Can someone please explain why is it so?
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 9 月 19 日
Commencement matches \w* because it all word forming characters. It is followed by something that is not 'ment ' because the space after Commencement is not 'm'.
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!