From: 7stud -- Date: 2011-04-09T04:53:46+09:00 Subject: Re: Match a pattern multiple times, returning matches, captures and offset? Brian Candler wrote in post #991686: > 7stud -- wrote in post #991546: >> However, note that >> begin() and end() are the two elements of offset(), which we've already >> discussed above. The idea was to additionally provide the relative >> offsets within a match, not just the absolute offsets within the string. > > That's easy - subtract begin(0) which is the absolute offset of the > start of the match. The "subtraction method" was thoroughly vetted earlier. -- Posted via http://www.ruby-forum.com/.