From: Guest Date: 2006-05-16T22:24:08+09:00 Subject: Re: Problem with my gsub! Christoffer Sawicki wrote: >> I've tried \1, but, that gives me even worse results. > > '%%Page: \1' or "%%Page: \\1" does what you want. Thank you, Christopher! Now, could you tell me how to have a counter for that \1? In other words, I want the numbers to increment, starting from 1 through however many "%%Page" indicators there are. Is there any way to do that in the same gsub! line? Thanks again. -- Posted via http://www.ruby-forum.com/.