From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Completion- Help Date: Wed, 30 Nov 2005 11:34:06 +0100 Organization: Freie Universitaet Berlin Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1133362082 29123 80.91.229.2 (30 Nov 2005 14:48:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 14:48:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 15:47:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhRC0-0004lD-KX for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2005 13:36:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhRBy-00022u-Jr for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2005 07:36:10 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news2.volia.net!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.uni-berlin.de kEwY7ku86nfZpDkscR1M+QOr/19RoZoE2d47xlNCLwSt3EPUAMJBqZszW9 In-Reply-To: Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.15.1 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI) X-Meat: Squirrel Original-Xref: shelby.stanford.edu gnu.emacs.help:135918 Original-To: help-gnu-emacs@gnu.org 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:31524 Archived-At: At Wed, 30 Nov 2005 10:44:24 +0100, FD wrote: > My question is how to write the regexp (I'm a newbie) to retrieve the > words from a file. The file contains only a list of words separated by > spaces. > > I tried > etags -l none -r="[a-zA-Z0-9]+" list.txt > but I obtained this: > etags: [a-zA-Z0-9]+ :unterminated regexp. the man page for etags has examples for how it expects a regex to look like: they have to delimited by slashes. > Where can I find a good documentation on regexps for emacs? i don't know if etags' regexes use the same syntax as emacs' regexes, but they look similar ("basic regular expressions"). in general, the info documentation for emacs is excellent. you can read about regexps here: (info "(Emacs)Regexps") (copy this line into some emacs buffer, put the cursor behind the last parentheses, and press C-x C-e). hope that helps, anselm