From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: How to grok a complicated regex? Date: Sat, 14 Mar 2015 09:16:33 +0100 Message-ID: <5503EE61.4090807@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1426321032 30173 80.91.229.3 (14 Mar 2015 08:17:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 08:17:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: mbork@wmi.amu.edu.pl Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 14 09:17:02 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWhFm-0000c5-28 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 09:17:02 +0100 Original-Received: from localhost ([::1]:39991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWhFl-0006Jj-6B for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 04:17:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWhFa-0006Gg-C2 for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 04:16:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWhFV-0005Mc-CC for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 04:16:50 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWhFV-0005MF-3D for help-gnu-emacs@gnu.org; Sat, 14 Mar 2015 04:16:45 -0400 Original-Received: from [91.113.6.194] ([91.113.6.194]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LiDHj-1ZI7560oGB-00nPHZ; Sat, 14 Mar 2015 09:16:43 +0100 Original-References: 87ioe4a8d3.fsf@wmi.amu.edu.pl X-Provags-ID: V03:K0:+LFx1jShuEAxsGp9+Q0BX44TJ/8kzZWKIPb1lpPB4hId5nJdSBw u4Kd4S+SOOhch3QPkjf1fPMBYs4V15BTQZ8R29InjeB6H2JlV98TT1FG0qs+CkyQw8shsuj 6hZjhm3hH2JkbGSuPIjPvArWEDx0Ou1I/CQSonsYXpFG7nCZ4BF6ThgXyGNP4B2vutNRr1b oH6bI8E6XmCHe0VoVAO7g== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103161 Archived-At: > 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 =E2=80=9Cwhat does this match=E2=80=9D =E2=80=93 I can = read it myself. But it > comes with a considerable effort. Are you aware of any tools that mig= ht > 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