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!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs