From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: How do I get a ] into a reg exp? Date: Wed, 13 Sep 2006 14:35:34 -0700 Message-ID: References: <450878C1.7020201@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158183377 21233 80.91.229.2 (13 Sep 2006 21:36:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2006 21:36:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 13 23:36:16 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 1GNcOh-0005CR-99 for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 23:35:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNcOg-0002Lv-Qm for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 17:35:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNcOU-0002LF-Ld for emacs-devel@gnu.org; Wed, 13 Sep 2006 17:35:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GNcOS-0002Hg-CA for emacs-devel@gnu.org; Wed, 13 Sep 2006 17:35:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNcOS-0002HH-47 for emacs-devel@gnu.org; Wed, 13 Sep 2006 17:35:40 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GNcQF-00032A-Od for emacs-devel@gnu.org; Wed, 13 Sep 2006 17:37:31 -0400 Original-Received: from rgmsgw02.us.oracle.com (rgmsgw02.us.oracle.com [138.1.186.52]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k8DLZaxs030970 for ; Wed, 13 Sep 2006 15:35:36 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw02.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k8DLZZsU015613 for ; Wed, 13 Sep 2006 15:35:36 -0600 Original-To: "Emacs Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <450878C1.7020201@student.lu.se> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:59808 Archived-At: > To include a `]' in a character set, you must make it the first > character. For example, `[]a]' matches `]' or `a'. To include a > `-', write `-' as the first or last character of the set, or put > it after a range. Thus, `[]-]' matches both `]' and `-'. > > To include `^' in a set, put it anywhere but at the beginning of > the set. (At the beginning, it complements the set--see below.) Thanks. That was a surprise. It's pretty standard, actually: http://www.greenend.org.uk/rjk/2002/06/regexp.html.