fork download
  1. x <- "CVEGEO=0901500011337<BR>CVE_ENT=09<BR>CVE_MUN=015<BR>CVE_LOC=0001<BR>CVE_AGEB=1337<BR>"
  2. regmatches(x, regexpr("_MUN=\\K\\d+", x, perl=TRUE))
  3. regmatches(x, regexpr("_AGEB=\\K\\d+", x, perl=TRUE))
Success #stdin #stdout 0.23s 185728KB
stdin
Standard input is empty
stdout
[1] "015"
[1] "1337"