| 查看: 479 | 回复: 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变了
已经有48人回复
FileCode能看出啥?
已经有17人回复
奇怪,两个人的filecode固定段从头到尾一模一样
已经有6人回复
filecode
已经有9人回复
应该是93bebmhtak前后十一个字符比较关键
已经有23人回复
我的国基提前知道中了,可是同事的操作让我实在接受不了,怎么会有这样的人
已经有13人回复
小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊
已经有6人回复
为什么网上很多人说本周 12号出结果
已经有5人回复
帮忙看看fileCode
已经有11人回复
基金中了
已经有15人回复











回复此楼