[erlang-questions] replace Result error

Sanath Prasanna <>
Mon Dec 1 11:49:27 CET 2014


Hi,
 I used following & return wrong result. How can I correct that ?


re:replace("stop Ads ? <user_opt_out_keyword> to 1111",
"<user_opt_out_keyword>", "pair&lovely", [{return,list}, global]).
Result => "stop Ads ? pair<user_opt_out_keyword>lovely to 1111"

expected Result => "stop Ads ? pair&lovely to 1111"

Br,
Sanath Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141201/eacc19ef/attachment.html>


More information about the erlang-questions mailing list