如何从不是日期的文本中提取3位数字?
例:
"she is born on 02-05-1934 and she is 200 years old."
那么,我如何从这里提取200
我在使用代码:
str_extract(data,"[[:digit:]]{3}")
但它正在返回的输出-193.
-193
regex r stringr
r ×1
regex ×1
stringr ×1