fork download
  1. x <- c("alexander c/d=(+5/-1)","maximus a/b=(-4/1)", "thor e/d=(+3/-2)")
  2. regmatches(x, regexpr("[-+]?\\d+(?=/)", x, perl=TRUE))
  3. regmatches(x, regexpr("/\\K[-+]?\\d+", x, perl=TRUE))
Success #stdin #stdout 0.2s 185728KB
stdin
Standard input is empty
stdout
[1] "+5" "-4" "+3"
[1] "-1" "1"  "-2"