From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: help with pattern-matching Date: Thu, 29 Jan 2015 21:36:24 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3db6a813274050dd57819 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH1Rb-000520-G5 for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 21:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH1Ra-0002SY-5g for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 21:36:27 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:46915) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH1RZ-0002SS-UP for emacs-orgmode@gnu.org; Thu, 29 Jan 2015 21:36:26 -0500 Received: by mail-lb0-f180.google.com with SMTP id b6so34192652lbj.11 for ; Thu, 29 Jan 2015 18:36:24 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a11c3db6a813274050dd57819 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm sorry to come with a basic elisp question, once again. I continue to work on this citation stuff. Currently, I can get html back from Zotero in a form like this: -----------------
Broder, John M., and Ian Urbina. =E2=80=9CAll Ey= es Turn to Virginia Senate Race.=E2=80=9D The New York Times, November 9, 2006,= sec. /. http://hostname/url.
----------------- Note the final "." in the href -- this is a bug in the citeproc-js citation engine (I think). So, I would like to do some postprocessing and just remove the final ".". But it's not obvious to me how to do that. I feel like it should be! And that for an editor, emacs makes it awfully hard to match patterns & edit strings. But I think that's partly because I simply understand lisp so poorly. If someone could show me how to do this, nad somehow along hte way make me understand hte basic principles involved so I can start to teach myself better... well, I would appreciate it. thanks again, Matt --001a11c3db6a813274050dd57819 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm sorry to come with a= basic elisp question, once again.=C2=A0

I continue to = work on this citation stuff.=C2=A0 Currently, I can get html back from Zote= ro in a form like this:

-----------------
=C2=A0 <div class=3D= "csl-entry">Broder, John M., and Ian Urbina. =E2=80=9CAll Eyes= Turn to Virginia Senate Race.=E2=80=9D <i>The New York Times</i&g= t;, November 9, 2006, sec. /. <a href=3D"http://hostname/url.">htt= p://hostname/url.</a></div>
-----------------

Note the final "." in the href -- this is a bug in the citepro= c-js citation engine (I think).

So, I would like to do some postproc= essing and just remove the final ".".=C2=A0 But it's not obvi= ous to me how to do that.=C2=A0 I feel like it should be!=C2=A0 And that fo= r an editor, emacs makes it awfully hard to match patterns & edit strin= gs.=C2=A0 But I think that's partly because I simply understand lisp so= poorly.=C2=A0

If someone could show me how to do this, nad s= omehow along hte way make me understand hte basic principles involved so I = can start to teach myself better...=C2=A0 well, I would appreciate it.
<= br>
thanks again,
Matt
--001a11c3db6a813274050dd57819--