阅读背景:

在R中的特定字符串后检索数字

来源:互联网 

I have a bunch of strings that contain the word "radius" followed by one or two digits. They also contain a lot of other letters, digits, and underscores. For example, one is "inflow100_radius6_distance12". I want a regex that will just return the one or two digits following "radius." If R recognized \K, then I would just use this:I have a bunch of strings that contain the word




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: