Update Tom on Open Tickets
Where do we stand with Friday's ads?
Send Ed new reports.
Proofread "Title of a Story"
#<div class="todo"><$checkbox field="todo_updatetomonopentickets" checked="done" unchecked="not done" default="not done">Update Tom on Open Tickets</$checkbox></div>
#<div class="todo"><$checkbox field="todo_wheredowestandonfridaysads" checked="done" unchecked="not done" default="not done">Where do we stand with Friday's ads?</$checkbox></div>
#<div class="todo"><$checkbox field="todo_sendednewreports" checked="done" unchecked="not done" default="not done">Send Ed new reports.</$checkbox></div>
#<div class="todo"><$checkbox field="todo_proofreadtitleofastory" checked="done" unchecked="not done" default="not done">Proofread "Title of a Story"</$checkbox></div>
{{myCrazyMacro}} <<callToMyCrazyMacro {{myWackyRegExParamInSomeTiddler}}>>
Could you write a TW5 Javascript plugin that would perform the same sort of string transformation — but using complex regular expressions? :-O
I regularly get task lists from my co-workers that I transform into checklists. Currently, I do this by copying the list to Notepad++, running a saved macro, and copying the output to my TiddlyWiki. For example, I might get a list like this:
Just in case this helps, there is a simple plugin to do Regex replacements in a tiddler, published by danielo at http://danielorodriguez.com/TW5-searchNreplace/
It may not be enough to do what Scott is requesting, because I think you cannot currently control the multiline option of Regex.
More information about this plugin in the group here: https://groups.google.com/forum/#!searchin/tiddlywiki/exporter|sort:date/tiddlywiki/WE7mYrz_QbA/mtuTDwP9Bd0J
Regards,
Julio