# replace each number with that number plus 1
gsubfn("[[:digit:]]+", function(x) as.numeric(x)+1, "(10 20)(100 30)")
# perl-style string interpolation
cati("pi = $pi, e = `exp(1)`\n")
# split out numbers
strapply("12abc34 55", "[0-9]+")
Run the code above in your browser using DataLab