From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Shlyakhter Newsgroups: gmane.emacs.help Subject: why is this regexp invalid: "\\(?1:\\)" Date: Wed, 1 Sep 2010 15:40:00 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1283370047 14697 80.91.229.12 (1 Sep 2010 19:40:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 19:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 01 21:40:45 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqtAm-0002lh-Ro for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Sep 2010 21:40:44 +0200 Original-Received: from localhost ([127.0.0.1]:44401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqtAa-0004lk-Kh for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Sep 2010 15:40:28 -0400 Original-Received: from [140.186.70.92] (port=39902 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqtAC-0004jz-Ho for help-gnu-emacs@gnu.org; Wed, 01 Sep 2010 15:40:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqtAA-0008QR-NZ for help-gnu-emacs@gnu.org; Wed, 01 Sep 2010 15:40:03 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:53458) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqtAA-0008PF-Jd for help-gnu-emacs@gnu.org; Wed, 01 Sep 2010 15:40:02 -0400 Original-Received: by wyb36 with SMTP id 36so11797606wyb.0 for ; Wed, 01 Sep 2010 12:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=p/kRaAYL+ajSaC5DBupHSJSEuEra+22rYD1U+dv44vE=; b=PoFHnWEbNITVTkY0vIF8/yGme9f638lCDfWp6pyKhXelo8hAnZJqLRXxYy8AeOCe9D VOX/QKwG8AEJ/fMCCv7qNmTijle5zv9bDKfSG9QC7r92qTRkK/DBc5kJmP2VvgpZKHxc h1fQQcIi5ZHMIaTNVY4th2PZPFJHa3IROuD9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=bb/D6XT7hEltGzeYOilZwUWk7tap6pIAAOFTgWuXB0eUDe8IBh1yOaXIOMfhuX4uJY S3QWfJZ1wcXoKsou+Mzj31CfcvQHv9y+sBnfK600wVyiOOZfNUkohtuXlpTvKkWQH6FY z0ylWY3HVT/VYTlOCKALw4ulY+7aUgTIY8UN0= Original-Received: by 10.216.4.19 with SMTP id 19mr8280638wei.110.1283370000590; Wed, 01 Sep 2010 12:40:00 -0700 (PDT) Original-Received: by 10.216.235.38 with HTTP; Wed, 1 Sep 2010 12:40:00 -0700 (PDT) X-Google-Sender-Auth: wBD7kAffS3Co23wQfs9B7iBtnGU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74851 Archived-At: dear emacs users, can you help me understand why the following simple expression gives an "Invalid regexp" error: (string-match "\\(?1:\\)" "") while removing the explicit group number gives no error: (string-match "\\(?:\\)" "") thanks, ilya