From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: How do I get a ] into a reg exp? Date: Wed, 13 Sep 2006 22:26:51 +0200 Message-ID: <85slivfr78.fsf@lola.goethe.zz> References: <45085FF6.5080403@student.lu.se> <87d59zmsjd.fsf@robotron.kosmorama> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158179236 6473 80.91.229.2 (13 Sep 2006 20:27:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2006 20:27:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 13 22:27:15 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GNbK4-000860-Qo for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 22:27:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNbK2-0002mi-O7 for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 16:27:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNbJs-0002mT-UA for emacs-devel@gnu.org; Wed, 13 Sep 2006 16:26:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GNbJs-0002mH-H8 for emacs-devel@gnu.org; Wed, 13 Sep 2006 16:26:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNbJs-0002mE-Ep for emacs-devel@gnu.org; Wed, 13 Sep 2006 16:26:52 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GNbLf-0005va-J8 for emacs-devel@gnu.org; Wed, 13 Sep 2006 16:28:43 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GNbJr-0002DB-Ry for emacs-devel@gnu.org; Wed, 13 Sep 2006 16:26:52 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 60D201C40B5C; Wed, 13 Sep 2006 22:26:51 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: <87d59zmsjd.fsf@robotron.kosmorama> (David Hansen's message of "Wed\, 13 Sep 2006 22\:16\:06 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59806 Archived-At: David Hansen writes: > On Wed, 13 Sep 2006 21:45:58 +0200 Lennart Borgman wrote: > >> How do I write >> >> (re-search-forward "[a-z\]]") > > "[][]" looks odd but works for me. But IMHO that should be "[\\[\\]]". No. \ is not special in character alternatives. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum