Arc Forumnew | comments | leaders | submit | ainar-g's commentslogin
2 points by ainar-g 5110 days ago | link | parent | on: (map [string ".*" _] "test")

You can actually do the last one using 'multisubst': (multisubs­t '(("<" "&lt;") (">" "&gt;") ("\"" "&quot;) ("&" "&amp;")­) str)

(sorry, I am a new here and I don't know how to mark code)

-----

2 points by fallintothis 5110 days ago | link

FYI: http://arclanguage.org/formatdoc

(Welcome to the forum!)

-----

1 point by ainar-g 5110 days ago | link

Thanks!

Also, I wonder, if there is a way to replace pairs of characters? I mean, if we need a code, that would replace 'number two number' with 'one two three,' should we use (multi)subst for it or is it done the other way (regexps etc)?

-----