From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: how to use parsing expressing grammar Date: Wed, 17 Dec 2008 03:53:07 -0800 (PST) Organization: http://groups.google.com Message-ID: <72bde6b1-ee08-4053-8d42-2a16ccd59900@v5g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1229521964 15649 80.91.229.12 (17 Dec 2008 13:52:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 13:52:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 17 14:53:49 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCwqO-00009j-Dm for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Dec 2008 14:53:44 +0100 Original-Received: from localhost ([127.0.0.1]:57523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCwpC-0004RG-J1 for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Dec 2008 08:52:30 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v5g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 76.102.50.240 Original-X-Trace: posting.google.com 1229514787 30911 127.0.0.1 (17 Dec 2008 11:53:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 17 Dec 2008 11:53:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v5g2000prm.googlegroups.com; posting-host=76.102.50.240; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165394 X-Mailman-Approved-At: Wed, 17 Dec 2008 08:51:27 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60727 Archived-At: There are 2 parsing expression grammars in elisp. * http://www.emacswiki.org/cgi-bin/wiki/ParserCompiler, (2008) by Mike Mattie. * http://www.emacswiki.org/emacs/ParsingExpressionGrammars (2008) by Helmut Eller. The second one seems simpler, and i'm trying to learn it as a regex replacement, but don't know how to use it. Could anyone give concrete example in the following scenario? For example, on my website i have things like:

Related essays:

Suppose i want to change them to:

See also:

SomeTitleString1 someSring1
SomeTitleString2 someSring2
...

How do i do it? Thanks. Xah =E2=88=91 http://xahlee.org/ =E2=98=84