作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<分区>
我想在 R 中使用 stringr
检测字符串中的 ¹
、²
等。
稍后我将从句子中提取它(如 text¹ text, 2020
)
library(stringr)
str_detect("¹", "[:digit:]")
#> [1] FALSE
str_detect("¹", "[:alpha:]")
#> [1] FALSE
str_detect("¹", "[:punct:]")
#> [1] FALSE
创建于 2022-11-19 reprex v2.0.2
我是一名优秀的程序员,十分优秀!