Escaped Periods In R Regular Expressions

后端 未结 3 1368
自闭症患者
自闭症患者 2020-11-28 08:44

Unless I am missing something, this regex seems pretty straightforward:

grepl(\"Processor\\.[0-9]+\\..*Processor\\.Time\", names(web02))

Ho

3条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 08:58

    Instead of

    \.
    

    Try

    \\.
    

    You need to escape the backspace first.

提交回复
热议问题