[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to grok a complicated regex?
From: |
martin rudalics |
Subject: |
How to grok a complicated regex? |
Date: |
Sat, 14 Mar 2015 09:16:33 +0100 |
> so I have this monstrosity [note: I know, there are much worse ones,
> too!]:
>
> "\\`\\(?:\\\\[([]\\|\\$+\\)?\\(.*?\\)\\(?:\\\\[])]\\|\\$+\\)?\\'"
>
> (it's in the org-latex--script-size function in ox-latex.el, if you're
> curious).
>
> I'm not asking “what does this match” – I can read it myself. But it
> comes with a considerable effort. Are you aware of any tools that might
> help to understand such regexen?
You might want to try regexp-lock.el which you can find here:
https://lists.gnu.org/archive/html/emacs-devel/2014-10/msg00688.html
Eventually it should also appear on ELPA but I have to polish up some
things first.
Sincerely, martin
- Re: How to grok a complicated regex?, (continued)
- Re: How to grok a complicated regex?, Tom Tromey, 2015/03/22
- Re: How to grok a complicated regex?, Rasmus, 2015/03/21
- Re: How to grok a complicated regex?, Yuri Khan, 2015/03/14
- RE: How to grok a complicated regex?, Drew Adams, 2015/03/14
- Message not available
- Re: How to grok a complicated regex?, Emanuel Berg, 2015/03/13
- Re: How to grok a complicated regex?, Emanuel Berg, 2015/03/14
- Re: How to grok a complicated regex?, Emanuel Berg, 2015/03/14
- Re: How to grok a complicated regex?, Thien-Thi Nguyen, 2015/03/14
- Message not available
- Re: How to grok a complicated regex?, Emanuel Berg, 2015/03/19
How to grok a complicated regex?,
martin rudalics <=
Re: How to grok a complicated regex?, Alan Mackenzie, 2015/03/18