| 查看: 478 | 回复: 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? |
» 猜你喜欢
奇怪,两个人的filecode固定段从头到尾一模一样
已经有5人回复
帮忙看看fileCode
已经有11人回复
FileCode能看出啥?
已经有16人回复
小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊
已经有4人回复
为什么网上很多人说本周 12号出结果
已经有4人回复
基金中了
已经有15人回复
filecode
已经有8人回复
确定了,国自然21号放榜
已经有7人回复
综述论文作为代表作会不会影响评审专家的印象分?
已经有11人回复
关于代码变化问题,想知道的进来
已经有24人回复











回复此楼
100