# String#ggsub

**URL:** <https://rubytalk.org/t/string-ggsub/21084>\
**Category:** ruby-talk\
**Created:** [25 September 2005 20:25 UTC](https://rubytalk.org/t/string-ggsub/21084 "2005-09-25T20:25:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gavin\_Kistner2](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@Gavin\_Kistner2](https://rubytalk.org/u/Gavin_Kistner2)\
**Post date:** [25 September 2005 20:25 UTC](https://rubytalk.org/t/string-ggsub/21084/1 "2005-09-25T20:25:48Z")

</div>

I occasionally find myself with gsub regexp that either eat too much, or work within a nesting, such that I need to run gsub more than once in order to get the desired end result. The code I end up writing tends to be of the form:

while foo.gsub!( /.../, ... ); end

Frankly, I really don't like that. It's like JS people who write things like:  
for ( var walkerNode = this; walkerNode.parent; walkerNode = walkerNode.parent ){}  
'abusing' the for loop construct to hold their logic.

Is there some other form in Ruby of "keep doing this until it returns nil" that is less...gross?

---

<div class="post-metadata">

**Author:** ![Simon\_Kroger](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Simon\_Kroger](https://rubytalk.org/u/Simon_Kroger)\
**Post date:** [25 September 2005 20:57 UTC](https://rubytalk.org/t/string-ggsub/21084/2 "2005-09-25T20:57:48Z")

</div>

Gavin Kistner wrote:

> I occasionally find myself with gsub regexp that either eat too much, or work within a nesting, such that I need to run gsub more than once in order to get the desired end result. The code I end up writing tends to be of the form:
> 
> while foo.gsub!( /.../, ... ); end
> 
> Frankly, I really don't like that. It's like JS people who write things like:  
> for ( var walkerNode = this; walkerNode.parent; walkerNode = walkerNode.parent ){}  
> 'abusing' the for loop construct to hold their logic.
> 
> Is there some other form in Ruby of "keep doing this until it returns nil" that is less...gross?

loop{break if foo.gsub!( /.../, ... ).nil?}

?

its more explicit and avoids the empty body, but ....  
i don't like it either 🙂

cheers

Simon

---

<div class="post-metadata">

**Author:** ![Logan\_Capaldo](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@Logan\_Capaldo](https://rubytalk.org/u/Logan_Capaldo)\
**Post date:** [25 September 2005 21:33 UTC](https://rubytalk.org/t/string-ggsub/21084/3 "2005-09-25T21:33:31Z")

</div>

I'm kinda curious, can we see an example of a regex where this was necessary?

> **···**
>
> On Sep 25, 2005, at 4:25 PM, Gavin Kistner wrote:
> 
> > I occasionally find myself with gsub regexp that either eat too much, or work within a nesting, such that I need to run gsub more than once in order to get the desired end result. The code I end up writing tends to be of the form:
> > 
> > while foo.gsub!( /.../, ... ); end

---

<div class="post-metadata">

**Author:** ![James\_Edward\_Gray\_II](https://avatars.discourse-cdn.com/v4/letter/j/ea5d25/32.png) [@James\_Edward\_Gray\_II](https://rubytalk.org/u/James_Edward_Gray_II)\
**Post date:** [25 September 2005 21:42 UTC](https://rubytalk.org/t/string-ggsub/21084/4 "2005-09-25T21:42:09Z")

</div>

Of course, it's trivial to roll one up:

#!/usr/local/bin/ruby -w

module Kernel  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def complete  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loop { break unless yield }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
end

if \_\_FILE\_\_ == $0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digits = "3211"  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;complete { digits.gsub!(/(\d)\1+/) { |d| d[0, 1].to\_i + 1 } }  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p digits # =\> "4"  
end

\_\_END\_\_

Though I do realize that's not what you asked.

James Edward Gray II

> **···**
>
> On Sep 25, 2005, at 3:25 PM, Gavin Kistner wrote:
> 
> > I occasionally find myself with gsub regexp that either eat too much, or work within a nesting, such that I need to run gsub more than once in order to get the desired end result. The code I end up writing tends to be of the form:
> > 
> > while foo.gsub!( /.../, ... ); end
> > 
> > Frankly, I really don't like that. It's like JS people who write things like:  
> > for ( var walkerNode = this; walkerNode.parent; walkerNode = walkerNode.parent ){}  
> > 'abusing' the for loop construct to hold their logic.
> > 
> > Is there some other form in Ruby of "keep doing this until it returns nil" that is less...gross?

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [25 September 2005 22:21 UTC](https://rubytalk.org/t/string-ggsub/21084/5 "2005-09-25T22:21:41Z")

</div>

g = foo.gsub!( /.../, ... ) until g.nil?

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [25 September 2005 22:26 UTC](https://rubytalk.org/t/string-ggsub/21084/6 "2005-09-25T22:26:42Z")

</div>

Oh better:

&nbsp;&nbsp;foo.gsub!( /.../, ... ) while $~

T.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://rubytalk.org/u/Robert)\
**Post date:** [26 September 2005 09:36 UTC](https://rubytalk.org/t/string-ggsub/21084/7 "2005-09-26T09:36:42Z")

</div>

Gavin Kistner wrote:

> I occasionally find myself with gsub regexp that either eat too much,  
> or work within a nesting, such that I need to run gsub more than once  
> in order to get the desired end result. The code I end up writing  
> tends to be of the form:
> 
> while foo.gsub!( /.../, ... ); end
> 
> Frankly, I really don't like that. It's like JS people who write  
> things like:  
> for ( var walkerNode = this; walkerNode.parent; walkerNode =  
> walkerNode.parent ){}  
> 'abusing' the for loop construct to hold their logic.
> 
> Is there some other form in Ruby of "keep doing this until it returns  
> nil" that is less...gross?

Another one

1 while foo.gsub!( /.../, ... )

Kind regards

&nbsp;&nbsp;&nbsp;&nbsp;robert

---

<div class="post-metadata">

**Author:** ![Gavin\_Kistner2](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@Gavin\_Kistner2](https://rubytalk.org/u/Gavin_Kistner2)\
**Post date:** [25 September 2005 22:10 UTC](https://rubytalk.org/t/string-ggsub/21084/8 "2005-09-25T22:10:52Z")

</div>

Here's a pared-down example from this week's ruby quiz:

class Array; def random; self[rand( self.length )]; end; end

class String  
&nbsp;&nbsp;&nbsp;def variation  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;out = self.dup  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while out.gsub!( /\(([^())?]+)\)(\?)?/ ){  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( $2 && ( rand \> 0.5 ) ) ? '' : $1.split( '|' ).random  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}; end  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;out  
&nbsp;&nbsp;&nbsp;end  
end

q = "(How (much|many)|What) is (the (value|result) of)? 10 + 2?"  
10.times{ puts q.variation }  
#=\> What is the value of 10 + 2?  
#=\> How many is 10 + 2?  
#=\> What is 10 + 2?  
#=\> How many is 10 + 2?  
#=\> What is the value of 10 + 2?  
#=\> What is 10 + 2?  
#=\> What is the result of 10 + 2?

> **···**
>
> On Sep 25, 2005, at 3:33 PM, Logan Capaldo wrote:
> 
> > > I occasionally find myself with gsub regexp that either eat too much, or work within a nesting, such that I need to run gsub more than once in order to get the desired end result. The code I end up writing tends to be of the form:
> > > 
> > > while foo.gsub!( /.../, ... ); end
> > 
> > I'm kinda curious, can we see an example of a regex where this was necessary?

---

<div class="post-metadata">

**Author:** ![Gavin\_Kistner2](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@Gavin\_Kistner2](https://rubytalk.org/u/Gavin_Kistner2)\
**Post date:** [25 September 2005 22:27 UTC](https://rubytalk.org/t/string-ggsub/21084/9 "2005-09-25T22:27:30Z")

</div>

That's not bad, thanks!

> **···**
>
> On Sep 25, 2005, at 4:21 PM, Trans wrote:
> 
> > g = foo.gsub!( /.../, ... ) until g.nil?

---

<div class="post-metadata">

**Author:** ![YANAGAWA\_Kazuhisa](https://avatars.discourse-cdn.com/v4/letter/y/d78d45/32.png) [@YANAGAWA\_Kazuhisa](https://rubytalk.org/u/YANAGAWA_Kazuhisa)\
**Post date:** [25 September 2005 23:09 UTC](https://rubytalk.org/t/string-ggsub/21084/10 "2005-09-25T23:09:39Z")

</div>

In Message-Id: \<1127687058.509239.99690@f14g2000cwb.googlegroups.com\>  
"Trans" \<transfire@gmail.com\> writes:

> Oh better:
> 
> &nbsp;&nbsp;foo.gsub!( /.../, ... ) while $~

&nbsp;&nbsp;&nbsp;&nbsp;irb(main):001:0\> s = 'foo'  
&nbsp;&nbsp;&nbsp;&nbsp;=\> "foo"  
&nbsp;&nbsp;&nbsp;&nbsp;irb(main):002:0\> s =~ /never match/  
&nbsp;&nbsp;&nbsp;&nbsp;=\> nil  
&nbsp;&nbsp;&nbsp;&nbsp;irb(main):003:0\> s.gsub!(/\w/, '\*') while $~  
&nbsp;&nbsp;&nbsp;&nbsp;=\> nil  
&nbsp;&nbsp;&nbsp;&nbsp;irb(main):004:0\> s  
&nbsp;&nbsp;&nbsp;&nbsp;=\> "foo"

So that's not context free.

I tend to use

&nbsp;&nbsp;&nbsp;&nbsp;true while s.gsub!(/.../, ...)

but probably OP doesn't like that because of extra `true'.

> **···**
>
> --  
> kjana@dm4lab.to September 26, 2005  
> What is done can't be undone.

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [26 September 2005 12:21 UTC](https://rubytalk.org/t/string-ggsub/21084/11 "2005-09-26T12:21:43Z")

</div>

How about a helper method

&nbsp;&nbsp;def rep(&blk)  
&nbsp;&nbsp;&nbsp;&nbsp;r = yield(&blk) until r.nil?  
&nbsp;&nbsp;end

&nbsp;&nbsp;rep { foo.gsub!( /.../, ... ) }

T.

---

<div class="post-metadata">

**Author:** ![W\_James](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@W\_James](https://rubytalk.org/u/W_James)\
**Post date:** [27 September 2005 09:56 UTC](https://rubytalk.org/t/string-ggsub/21084/12 "2005-09-27T09:56:43Z")

</div>

James Edward Gray II wrote:

> #!/usr/local/bin/ruby -w
> 
> module Kernel  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;def complete  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;loop { break unless yield }  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
> end
> 
> if \_\_FILE\_\_ == $0  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digits = "3211"  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;complete { digits.gsub!(/(\d)\1+/) { |d| d[0, 1].to\_i + 1 } }  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p digits # =\> "4"  
> end

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;complete { digits.gsub!(/(\d)\1+/) { $1.to\_i + 1 } }

---

<div class="post-metadata">

**Author:** ![David\_A\_Black3](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@David\_A\_Black3](https://rubytalk.org/u/David_A_Black3)\
**Post date:** [25 September 2005 23:26 UTC](https://rubytalk.org/t/string-ggsub/21084/13 "2005-09-25T23:26:52Z")

</div>

Hi --

> **···**
>
> On Mon, 26 Sep 2005, YANAGAWA Kazuhisa wrote:
> 
> > In Message-Id: \<1127687058.509239.99690@f14g2000cwb.googlegroups.com\>  
> > "Trans" \<transfire@gmail.com\> writes:
> > 
> > > Oh better:
> > > 
> > > &nbsp;&nbsp;foo.gsub!( /.../, ... ) while $~
> > 
> > &nbsp;&nbsp;&nbsp;irb(main):001:0\> s = 'foo'  
> > &nbsp;&nbsp;&nbsp;=\> "foo"  
> > &nbsp;&nbsp;&nbsp;irb(main):002:0\> s =~ /never match/  
> > &nbsp;&nbsp;&nbsp;=\> nil  
> > &nbsp;&nbsp;&nbsp;irb(main):003:0\> s.gsub!(/\w/, '\*') while $~  
> > &nbsp;&nbsp;&nbsp;=\> nil  
> > &nbsp;&nbsp;&nbsp;irb(main):004:0\> s  
> > &nbsp;&nbsp;&nbsp;=\> "foo"
> > 
> > So that's not context free.
> > 
> > I tend to use
> > 
> > &nbsp;&nbsp;&nbsp;true while s.gsub!(/.../, ...)
> > 
> > but probably OP doesn't like that because of extra `true'.
> 
> If you had reason to save the last match, you could do:
> 
> &nbsp;&nbsp;&nbsp;m = $~ while s.gsub!(/.../, ...)
> 
> 🙂 Also this would work, but it's probably too verbose:
> 
> &nbsp;&nbsp;&nbsp;begin s.gsub!(/\w/,"\*") end while $~
> 
> David
> 
> --  
> David A. Black  
> dblack@wobblini.net

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [26 September 2005 00:21 UTC](https://rubytalk.org/t/string-ggsub/21084/14 "2005-09-26T00:21:42Z")

</div>

> So that's not context free.

Ah, good point. Well,

&nbsp;&nbsp;''=~//; foo.gsub!( /.../, ... ) while $~

But that's more fitting an obsucure code contest 🙂

T.

---

<div class="post-metadata">

**Author:** ![7rans](https://avatars.discourse-cdn.com/v4/letter/7/a8b319/32.png) [@7rans](https://rubytalk.org/u/7rans)\
**Post date:** [26 September 2005 12:21 UTC](https://rubytalk.org/t/string-ggsub/21084/15 "2005-09-26T12:21:43Z")

</div>

Sorry, just woke up:

&nbsp;&nbsp;def rep  
&nbsp;&nbsp;&nbsp;&nbsp;r = yield until r.nil?  
&nbsp;&nbsp;end

T.

---

<div class="post-metadata">

**Author:** ![David\_A\_Black3](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@David\_A\_Black3](https://rubytalk.org/u/David_A_Black3)\
**Post date:** [26 September 2005 12:29 UTC](https://rubytalk.org/t/string-ggsub/21084/16 "2005-09-26T12:29:38Z")

</div>

Hi --

> Sorry, just woke up:
> 
> def rep  
> &nbsp;&nbsp;&nbsp;r = yield until r.nil?  
> end

Or (modeled on some earlier suggestions):

&nbsp;&nbsp;&nbsp;def rep  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true until yield.nil?  
&nbsp;&nbsp;&nbsp;end

or if false is OK:

&nbsp;&nbsp;&nbsp;def rep  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true while yield  
&nbsp;&nbsp;&nbsp;end

I love watching Ruby code progressively disappear from the screen (and  
still be clear) 🙂

David

> **···**
>
> On Mon, 26 Sep 2005, Trans wrote:
> 
> --  
> David A. Black  
> dblack@wobblini.net

---

<div class="post-metadata">

**Author:** ![Gavin\_Kistner2](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@Gavin\_Kistner2](https://rubytalk.org/u/Gavin_Kistner2)\
**Post date:** [27 September 2005 04:20 UTC](https://rubytalk.org/t/string-ggsub/21084/17 "2005-09-27T04:20:19Z")

</div>

Mostly I don't like it for the confusing/vapid nature of true there. But it makes me think that I sort of like:

:go while s.gsub!( /.../, ... )

or perhaps

while s.gsub!( /.../, ... )  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Keep on truckin'!  
end

or perhaps

while s.gsub!( /.../, ... )  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:ya\_cant\_and\_ya\_wont\_and\_ya\_dont\_stop  
end

🙂

> **···**
>
> On Sep 25, 2005, at 5:09 PM, YANAGAWA Kazuhisa wrote:
> 
> > I tend to use
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;true while s.gsub!(/.../, ...)
> > 
> > but probably OP doesn't like that because of extra `true'.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://rubytalk.org/u/Robert)\
**Post date:** [26 September 2005 12:41 UTC](https://rubytalk.org/t/string-ggsub/21084/18 "2005-09-26T12:41:42Z")

</div>

David A. Black wrote:

> Hi --
> 
> > Sorry, just woke up:
> > 
> > def rep  
> > &nbsp;&nbsp;&nbsp;r = yield until r.nil?  
> > end
> 
> Or (modeled on some earlier suggestions):
> 
> &nbsp;&nbsp;&nbsp;def rep  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true until yield.nil?  
> &nbsp;&nbsp;&nbsp;end
> 
> or if false is OK:
> 
> &nbsp;&nbsp;&nbsp;def rep  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true while yield  
> &nbsp;&nbsp;&nbsp;end
> 
> I love watching Ruby code progressively disappear from the screen (and  
> still be clear) 🙂

Definitely! Now you arrived at my solution - only you use true instead of  
1 (three more characters!). 🙂

Kind regards

&nbsp;&nbsp;&nbsp;&nbsp;robert

> **···**
>
> > On Mon, 26 Sep 2005, Trans wrote:

---

<div class="post-metadata">

**Author:** ![David\_A\_Black3](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@David\_A\_Black3](https://rubytalk.org/u/David_A_Black3)\
**Post date:** [26 September 2005 12:52 UTC](https://rubytalk.org/t/string-ggsub/21084/19 "2005-09-26T12:52:46Z")

</div>

Hi --

> **···**
>
> On Mon, 26 Sep 2005, Robert Klemme wrote:
> 
> > David A. Black wrote:
> > 
> > > Hi --
> > > 
> > > On Mon, 26 Sep 2005, Trans wrote:
> > > 
> > > > Sorry, just woke up:
> > > > 
> > > > def rep  
> > > > &nbsp;&nbsp;&nbsp;r = yield until r.nil?  
> > > > end
> > > 
> > > Or (modeled on some earlier suggestions):
> > > 
> > > &nbsp;&nbsp;&nbsp;def rep  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true until yield.nil?  
> > > &nbsp;&nbsp;&nbsp;end
> > > 
> > > or if false is OK:
> > > 
> > > &nbsp;&nbsp;&nbsp;def rep  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true while yield  
> > > &nbsp;&nbsp;&nbsp;end
> > > 
> > > I love watching Ruby code progressively disappear from the screen (and  
> > > still be clear) 🙂
> > 
> > Definitely! Now you arrived at my solution - only you use true instead of  
> > 1 (three more characters!). 🙂
> 
> I was basing it on:  
> [http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/157559](http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/157559)  
> but was too lazy to look it up -- hence the vague attribution 🙂
> 
> David
> 
> --  
> David A. Black  
> dblack@wobblini.net

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://rubytalk.org/u/Robert)\
**Post date:** [26 September 2005 13:11 UTC](https://rubytalk.org/t/string-ggsub/21084/20 "2005-09-26T13:11:42Z")

</div>

David A. Black wrote:

> Hi --
> 
> > David A. Black wrote:
> > 
> > > Hi --
> > > 
> > > > Sorry, just woke up:
> > > > 
> > > > def rep  
> > > > &nbsp;&nbsp;&nbsp;r = yield until r.nil?  
> > > > end
> > > 
> > > Or (modeled on some earlier suggestions):
> > > 
> > > &nbsp;&nbsp;&nbsp;def rep  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true until yield.nil?  
> > > &nbsp;&nbsp;&nbsp;end
> > > 
> > > or if false is OK:
> > > 
> > > &nbsp;&nbsp;&nbsp;def rep  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true while yield  
> > > &nbsp;&nbsp;&nbsp;end
> > > 
> > > I love watching Ruby code progressively disappear from the screen  
> > > (and still be clear) 🙂
> > 
> > Definitely! Now you arrived at my solution - only you use true  
> > instead of 1 (three more characters!). 🙂
> 
> I was basing it on:  
> [http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/157559](http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/157559)  
> but was too lazy to look it up -- hence the vague attribution 🙂

Ooops! I overlooked that one. /me smacks himself So the attribution  
should of course go to Yanagawa Kazuhisa (I never know which is the  
surname and which the christian name with asian names.).

I'll shut up now.

&nbsp;&nbsp;&nbsp;&nbsp;robert

> **···**
>
> > On Mon, 26 Sep 2005, Robert Klemme wrote:
> > 
> > > > On Mon, 26 Sep 2005, Trans wrote:

[Next page](https://rubytalk.org/t/string-ggsub/21084.md?page=2)
