How to use \G in a regexp pattern?

The Regexp document says that '\G - Matches point where last match
finished', but there is no example. It seems useful, but I don't
understand how to use it. Would you please explain it and give some
examples? Thank you!

···

--
Posted via http://www.ruby-forum.com/.

http://www.regular-expressions.info/continue.html

-Jingjing

···

-----Original Message-----
From: Joey Zhou [mailto:yimutang@gmail.com]
Sent: Tuesday, November 08, 2011 9:21 PM
To: ruby-talk ML
Subject: How to use \G in a regexp pattern?

The Regexp document says that '\G - Matches point where last match
finished', but there is no example. It seems useful, but I don't
understand how to use it. Would you please explain it and give some
examples? Thank you!

--
Posted via http://www.ruby-forum.com/.