[erlang-questions] & is not getting replaced in re:replace

Dale Harvey dale@REDACTED
Mon May 3 19:28:23 CEST 2010


from
http://erldocs.com/R13B04/stdlib/re.html?search=re%20replace&i=3#replace/3

To insert an & or \ in the result, precede it with a \.

On 3 May 2010 18:16, Wes James <comptekki@REDACTED> wrote:

> Is there something special with "&" in erlang.
>
>
> re:replace(T, "<", "&", [{return, list}, global]).
> "<"
>
> I noticed that a string I had was not getting changed and it came down
> to the above re:replace of "<" with "&" return "<".  Why?
>
> thx,
>
> -wes
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list