I would like a simple javascript template for doing a regex find and replace search on a draft which I could use and modify to save custom regex workflow actions. I tried modifying existing scripts but I always got error messages. Ideally this template would just have (a) two fields at the top which could be replaced with the regex expressions, and (b) would work either on a selection or (if no selection) on the entire draft.
Thanks!
PS: I also created a feature request to make this easier: A Find/Replace "Step" for Custom Actions (with RegEx)