On Wednesday, November 22, 2017 at 4:11:10 AM UTC-6, Edward K. Ream wrote:
> the org-mode importer regex is much simpler, because the code only needs > to recognize the trailing tags themselves, not the head. > This suggests a much easier way to specify org-mode regex patterns. I knew about this possibility several days ago, but I wanted to give regex's a chance to show what they can do. They failed ;-) Instead of contortions trying to specify \1, the declutter mechanism should support this: RULE :([\w_@]+:)+\s*$ REPLACE-HEAD This tells the declutter code to replace the headline by the text *preceding *the matched text. Similarly: - REPLACE-TAIL replaces the headline by the text that *follows* the matched text. - REPLACE-REST replaces the headline by everything *except* the matched text. These should be easy to do. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
