regexp:(g)sub buglet?

Bengt Kleberg <>
Tue Nov 29 10:06:45 CET 2005


On 2005-11-29 01:18, Hal Snyder wrote:

> 3> regexp:gsub("foo","$","Z"). 
> {ok,"foo",0}

before sam (http://plan9.bell-labs.com/sys/doc/sam/sam.html, first use 
of strucural regular expressions) most (all?) regular expressions used 
'\n' as end of string. try:

regexp:gsub("foo\n","$","Z").


bengt



More information about the erlang-questions mailing list