[erlang-questions] question about regexp:gsub \&

yin sun <>
Sat Jul 14 23:46:20 CEST 2007


in http://www.erlang.org//doc/apps/stdlib/index.html
manual for regexp,
\& puts a literal & into the replacement string.

But

35> regexp:gsub("<>",">","\&").
{ok,"<>",1}

Is the manual wrong or I miss something?

Thanks
/Yin



More information about the erlang-questions mailing list