add 1 to numbers by Hendrik

package main
import(."strconv";r"regexp";"os")
func main(){b:=make([]byte,2e3);os.Stdin.Read(b);print(r.MustCompile("[1-9]\\d*").ReplaceAllStringFunc(string(b),func(s string)string{i,_:=Atoi(s);return Itoa(1+i)}))}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page