Thank you, Hyrek! I understand it now!<br><br><div><span class="gmail_quote">2008/6/25, Hynek Vychodil <<a href="mailto:vychodil.hynek@gmail.com">vychodil.hynek@gmail.com</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
It is little bit difficult. In regexp you have to escape backslash and secondary must escape backslash for erlang parser but for substituting string you have to only escape for erlang parser. Weird, so ...<br><br>5> {ok, T, _} = regexp:gsub("qwert\\asdf", "\\\\", "\\\\").<br>
 {ok,"qwert\\\\asdf",1}<br>6> io:format("~s~n", [T]).<br>qwert\\asdf<br>ok<br><span class="sg"><br>-- <br>--Hynek (Pichi) Vychodil </span></blockquote></div><br>