* Regular expressions that describe most (?) org syntax ?
@ 2021-10-30 5:04 Jean-Christophe Helary
2021-10-30 5:18 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe Helary @ 2021-10-30 5:04 UTC (permalink / raw)
To: orgmode
I am looking for a set of regular expressions that roughly describe most of the important org syntax.
A bit like
@code\{[^\}]*\}|@command\{[^\}]*\} ...
describes part of the texi code found in the Emacs manuals.
I could figure something out, but I thought maybe there is already something around…
--
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Regular expressions that describe most (?) org syntax ?
2021-10-30 5:04 Regular expressions that describe most (?) org syntax ? Jean-Christophe Helary
@ 2021-10-30 5:18 ` Ihor Radchenko
2021-10-30 5:21 ` Jean-Christophe Helary
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2021-10-30 5:18 UTC (permalink / raw)
To: Jean-Christophe Helary; +Cc: orgmode
Jean-Christophe Helary <lists@traduction-libre.org> writes:
> I am looking for a set of regular expressions that roughly describe most of the important org syntax.
>
> A bit like
>
> @code\{[^\}]*\}|@command\{[^\}]*\} ...
>
> describes part of the texi code found in the Emacs manuals.
>
> I could figure something out, but I thought maybe there is already something around…
You need to study org-element.el starting from
`org-element--current-element'.
Best,
Ihor
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Regular expressions that describe most (?) org syntax ?
2021-10-30 5:18 ` Ihor Radchenko
@ 2021-10-30 5:21 ` Jean-Christophe Helary
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe Helary @ 2021-10-30 5:21 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: orgmode
> On Oct 30, 2021, at 14:18, Ihor Radchenko <yantar92@gmail.com> wrote:
>
> Jean-Christophe Helary <lists@traduction-libre.org> writes:
>
>> I am looking for a set of regular expressions that roughly describe most of the important org syntax.
>
> You need to study org-element.el starting from
> `org-element--current-element'.
Thank you Ihor !
Jean-Christophe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-30 5:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 5:04 Regular expressions that describe most (?) org syntax ? Jean-Christophe Helary
2021-10-30 5:18 ` Ihor Radchenko
2021-10-30 5:21 ` Jean-Christophe Helary
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).