On 29/06/06, agouti agouti <agouti / gmail.com> wrote: > it ok , but when i try try with command line : > <pre>cat file.html | ruby -pe 'gsub(/(<td.*agenda.*\/td>)/, '<!-- \1 > -->')'</pre> > i got a error : Perhaps it's because you tried to nest single quotes within single quotes. You need to use something else instead, like double quotes or %q (equivalent to '): cat file.html | ruby -pe 'gsub(/(<td.*agenda.*\/td>)/, %q(<!-- \1 -->))' Paul.