ruby - Return match position in String.scan -


i need scan larger text documents patterns expressed in regular expressions , extract number of surrounding text tokens. @ moment use string.scan retrieve matches, doesn't give me position of matched string in document. there elegant solution this?

check out post.

it works on match object. m.begin(1)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -