Paddy wrote: > Check the arguments to re.sub. > > >>> re.sub('(?m)^foo', 'bar', '\nfoo', count=0) > '\nbar' > > - Paddy. Duh! :) I appreciate it, thanks. -- nyenyec