regexpr不匹配是为什么有时候会返回 -1有时候会返回 intger(0)
regexpr(pat, text)## [1] 1 -1 -1 11## attr(,"match.length")## [1] 3 -1 -1 3## attr(,"useBytes")## [1] TRUEa<-"GET /News.htm HTTP/1.0"
c<-grep(".html",a);c
integer(0)
|
楼主: cx8255
|
1011
4
[问答] regexpr不匹配时为什么有时候会返回 -1 有时候会返回 intger(0) |
|
高中生 30%
-
|
| ||
|
|
| ||||||||||
|
http://gen.lib.rus.ec/
|
||||||||||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


