Thanks, I eventually went with the the completely different approach of @nek. Although it seemed overwhelming at first it's actually quite nice. I adapted it to my needs and style and everything works as intended. The only small issue I'm seeing as an RegExp matching error (-1) error in the log when there arent any todo items at all. I can live with that though as I still struggled to get lookahead assertions working properly. I learned a thing or two though.
Thanks again.![Thumbs Up :thumbup:]()
Thanks again.

Statistics: Posted by Phuturist — 17 minutes ago