Hi,

In message "Re: [Q] specify start postion of Regexp matching"
    on Mon, 26 Nov 2007 00:20:25 +0900, makoto kuwata <kwa / kuwata-lab.com> writes:

|Is it possible to specify start position of Regexp matching?
|
|    str = "foo bar baz"
|    m = /ba/.match(str)
|    p m.begin(0)             #=> 4
|    m = /ba/.match(str, 5)   # is it possible?
|    p m.begin(0)             #=> 8 (if possible)

str.index(/ba/, 5) ?

							matz.