News for hackers. Stuff that matters.
Re:Text Showdown: Gap Buffers vs. Ropes by LukeShu on Tuesday October 10, 2023 @06:06PM (#37838273)
> Go ... I don't think it tells you anything else, like the position of the match.

The regexp.Regexp.FindReaderIndex and .FindReaderSubmatchIndex methods tell you the position of the match.

Re:Text Showdown: Gap Buffers vs. Ropes by burntsushi on Wednesday October 11, 2023 @06:04PM (#37850881)
Despite having studied Go's regex engine in depth, I have somehow missed those methods. To the point that when you responded, I assumed they were added recently. I checked to be sure, and indeed not. They've been there since Go 1.0.

Thanks for the correction!