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