When I'm doing this in erlang, I got following result.
19> re:replace("(9 and 10) or (11 and 12)","(9 and 10)","13",[{return,list}]).
"(13) or (11 and 12)".
Is this correct?, why my answer isn't "13 or (11 and 12)
" ?
When I'm doing this in erlang, I got following result.
19> re:replace("(9 and 10) or (11 and 12)","(9 and 10)","13",[{return,list}]).
"(13) or (11 and 12)".
Is this correct?, why my answer isn't "13 or (11 and 12)
" ?