[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace-regexp-in-string, using the dyn scoped variable STR
From: |
Lennart Borgman |
Subject: |
Re: replace-regexp-in-string, using the dyn scoped variable STR |
Date: |
Thu, 12 Nov 2009 11:17:41 +0100 |
On Thu, Nov 12, 2009 at 10:59 AM, Juri Linkov <address@hidden> wrote:
>> (setq org-str (replace-regexp-in-string
>> "&#x\\([a-f0-9]\\{2,4\\}\\);"
>> (lambda (m)
>> (char-to-string
>> ;; Note: str is scoped dynamically from
>> ;; `replace-regexp-in-string'.
>> (+ (string-to-number (match-string 1 str) 16)
>
> `str' has the same value as `m'.
Thanks Juri. (Wonder how I missed that?)