1 line
1.3 KiB
Plaintext
1 line
1.3 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Dear all.</p> <p>I have some text with selected phrases marked within asterisks ("*") because org-mode syntax helps to visualize them inside the text, and I'd like to extract those phrases to another buffer.</p> <p>As I understand after some searching, one way is to use occur.</p> <p>However, I'm struggling (to say it lightly) to find a working regex for this occurrence that is "whatever is between asterisks". I tried txt2regex but no success still...</p> <p>Does anyone knows a way to do this; or been in this situation and found a different approach? My lisp/regex fu is very much near the bottom, but I'm happy to learn.</p> <p>As always, thanks a lot for your time and attention. :)</p> <p>Best regards...</p> <p>​</p> <p>PD: I'm thinking about ways to do semantic analysis with org-mode. If anyone's interested on this we can arrange some collaboration. :)</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/edumerco"> /u/edumerco </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rco34g/extracting_phrases_between_asterisks/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/rco34g/extracting_phrases_between_asterisks/">[comments]</a></span> |