[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Match a pattern multiple times, returning matches, captures and
From: 7stud -- <bbxx789_05ss () yahoo ! com>
Date: 2011-04-08 19:53:46
Message-ID: 9e87ab4e65b386a00d2bed80ffd89a71 () ruby-forum ! com
[Download RAW message or body]
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/.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic