| 查看: 499 | 回复: 0 | |||
100403140212木虫 (正式写手)
超级水晶虫
|
[求助]
matlab字符串的查找问题
|
|
各位大神问题如下(注:源自http://blog.csdn.net/mathsoperator/article/details/7232334) poestr = ['while I nodded, nearly napping, ' 'suddenly there came a tapping,']; 1)原作者regexp(poestr, '(?<nonwhitechar>\S)\k<nonwhitechar>', 'match') 运算结果ans = 'dd' 'pp' 'dd' 'pp' 2)我将程序稍作修改,poestr = ['while I nodded, nearly napping, ' 'suddenly there came a tapping,']; regexp(poestr, '(?<nonwhitechar>\S).*\k<nonwhitechar>', 'match') 运算结果ans = 'hile I nodded, n...' 'ere came' 'a ta' 'pp' 请问为什么2)中运行结果,为第一个单词为啥不是while而是hile? |
» 猜你喜欢
27材料申博求捞
已经有7人回复
憎水剂,表面活性剂
已经有3人回复
申博
已经有7人回复
征友后感触
已经有9人回复
食品与机械 编辑C处理稿子时间
已经有4人回复
注意啦!用基金购买打印纸、硒鼓、优盘、移动硬盘、个人计算机属于违规了
已经有4人回复
IVD领域内综述投稿推荐
已经有5人回复











回复此楼