fork download
  1. regex = "(?x)(xxxx) (?<id>[0-9A-Za-z]{4}) (?<number>[0-9]{5})"
  2. notable = "xxxxcn0700814"
  3. regexpr(regex,notable,perl = TRUE)
Success #stdin #stdout 0.23s 60752KB
stdin
Standard input is empty
stdout
[1] 1
attr(,"match.length")
[1] 13
attr(,"useBytes")
[1] TRUE
attr(,"capture.start")
       id number
[1,] 1  5      9
attr(,"capture.length")
       id number
[1,] 4  4      5
attr(,"capture.names")
[1] ""       "id"     "number"