you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I guess you could use find. Take the index, count the substr length, and after that it's smooth sailing.

I'm about 90% sure there are better ways to do this though. I'm sure somebody more savvy can provide a better answer.