emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a string to valid XHTML id?


From: Deniz Dogan
Subject: Re: Converting a string to valid XHTML id?
Date: Mon, 29 Nov 2010 19:33:41 +0100

2010/11/29 Lennart Borgman <address@hidden>:
> On Mon, Nov 29, 2010 at 7:08 PM, Andreas Schwab <address@hidden> wrote:
>> Lennart Borgman <address@hidden> writes:
>>
>>> Do we have a function somewhere for converting a string to a valid XHTML id:
>>
>> (replace-regexp-in-string "\\`[^A-Za-z]" "X"
>>   (replace-regexp-in-string "[^A-Za-z0-9_:.-]" "_" string))
>
> Thanks, that seems good.
>
> Could we please add something like that in an appropriate library in Emacs?
>
>

What is this for? Just curious.

-- 
Deniz Dogan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]