Arc Forumnew | comments | leaders | submitlogin
2 points by ainar-g 5176 days ago | link | parent

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 5176 days ago | link

FYI: http://arclanguage.org/formatdoc

(Welcome to the forum!)

-----

1 point by ainar-g 5175 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)?

-----