[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp newline issue
From: |
Stefan Monnier |
Subject: |
Re: regexp newline issue |
Date: |
Wed, 30 Nov 2005 23:38:47 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> (mapconcat (lambda (char)
> (if (memq char '(32 9 10 13))
> "[\040\011\012\015]"
> (format "[\040\011\012\015]*%c" char)))
> string nil))
Other than to force the reader to try and remember those ASCII codes, is
there any reason not use:
(mapconcat (lambda (char)
(if (memq char '(?\t ?\n ?\r ?\ ))
"[\t\n\r ]"
(format "[\t\n\r ]*%c" char)))
string nil))
-- Stefan