From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Help with regexp Date: Tue, 1 Dec 2009 21:21:56 +0100 Organization: GNU's Not UNIX! Message-ID: <200912012021.nB1KLuiv024566@fed.local> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1259698915 6737 80.91.229.12 (1 Dec 2009 20:21:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 20:21:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 01 21:21:48 2009 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.50) id 1NFZEI-0007Sb-Ni for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 21:21:46 +0100 Original-Received: from localhost ([127.0.0.1]:32864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFZEH-0003WM-Is for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 15:21:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFZDr-0003VD-Q2 for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 15:21:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFZDm-0003Rr-Pf for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 15:21:19 -0500 Original-Received: from [199.232.76.173] (port=35083 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFZDm-0003Rm-LA for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 15:21:14 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:50112) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFZDm-0004aJ-MC for help-gnu-emacs@gnu.org; Tue, 01 Dec 2009 15:21:14 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 0CC2DC5B19 for ; Tue, 1 Dec 2009 15:21:14 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 01 Dec 2009 15:21:14 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:message-id:from:to:subject:reply-to; s=smtpout; bh=2JpMBQqXl8MxnPHJLejhZJlRq+k=; b=VnBd8ETiwnbmVh6Kk8/BH+6n1Oxjz11aFpa2lqOXnTQRTJNWH3GX41HLha66O23aOvPk3GmvWtlA/tP20Es0QAAXL3dQOIlpQRHGYw9I07v0hqWLCz396We3aGoORuI5s9POBJmrl5+bxFaSJw5zYRxw8p07TERZ03XHpW5L/Js= X-Sasl-enc: t+4g418+QW5A6ZooxkDIh0WXBySQmUOXhUW0VezlBB0a 1259698873 Original-Received: from fed.local (cha51-2-82-244-211-40.fbx.proxad.net [82.244.211.40]) by mail.messagingengine.com (Postfix) with ESMTPSA id 76A6349F5D8 for ; Tue, 1 Dec 2009 15:21:13 -0500 (EST) Original-Received: from fed.local (fed.local [127.0.0.1]) by fed.local (8.14.3/8.14.3) with ESMTP id nB1KLu1s024570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Dec 2009 21:21:56 +0100 Original-Received: (from xavier@localhost) by fed.local (8.14.3/8.14.3/Submit) id nB1KLuiv024566; Tue, 1 Dec 2009 21:21:56 +0100 X-Authentication-Warning: fed.local: xavier set sender to xma@gnu.org using -f User-Agent: Rmail/23.1.1 Emacs/23.1.1 (gnu/linux) Jabber-ID: xavier@maillard.im X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:70295 Archived-At: Hi, I am trying to find the regexp that could match on these: "=>foo" "=>foo:bar" "=>foo:bar:baz" The regexp must match on all of these strings. The string can't be deeper than 3 levels (like latest example) and each component may have spaces. How can I match this ? Regards Xavier -- http://www.gnu.org http://www.april.org http://www.lolica.org