fork(2) download
  1. s = "Berat: 0.25kg\nRp 115.000\nJumlah:\nBeli\nKe Dafta"
  2. gsub("(?s).*(Rp\\s+\\d+\\.\\d+).*", "\\1", s, perl=T)
Success #stdin #stdout 0.45s 22824KB
stdin
Standard input is empty
stdout
[1] "Rp 115.000"