regexp command expr(?!test) assertion fail
14 次查看(过去 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!