Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'skip:/ 40': 0.07; '"my': 0.09; 'command.': 0.09; 'output': 0.10; 'component:': 0.16; 'subject:expression': 0.16; 'subject:regular': 0.16; 'work"': 0.16; 'header:In-Reply-To:1': 0.22; 'changes:': 0.23; 'string': 0.26; 'all,': 0.28; 'to:addr:python-list': 0.33; 'skip:# 10': 0.34; 'charset:us-ascii': 0.36; 'to:addr:python.org': 0.39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=dannwong@cisco.com; l=426; q=dns/txt; s=iport; t=1313478103; x=1314687703; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to; bh=WLPEbzsQuFiTu+m5J1LQJc6uPDty8hgzT8hfdBLZxuA=; b=eE6KH4REM0OLVi5mmxVuacbrbOEYAho7CMVDsaHHzmwoKcjy3YM6FWWP 8TelnHpA2t5qJGz1FpoEt0GIhULM12/x7PXvrPMWRSl09BcpRfckxvKq6 Ru/gUfIRWa8OwBqccntTUwJKgwwxXD+MmPhR6w0LRwIgeK67bXwW34TCw k=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0HACYVSk6tJV2a/2dsb2JhbABBmRKPCneBQQEBAQMSARQJCk8CASoGGAYBUAYBAQQbGqMpAZ8UhWhfBIdfkEiLfg X-IronPort-AV: E=Sophos;i="4.67,378,1309737600"; d="scan'208";a="13451972" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: regular expression Date: Tue, 16 Aug 2011 02:00:22 -0500 In-Reply-To: <4E499F0B.30900@stoneleaf.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: regular expression Thread-Index: Acxb4ir3UlxmoI2rSJOU7fsKajOiDg== References: <4E499F0B.30900@stoneleaf.us> From: "Danny Wong (dannwong)" To: X-OriginalArrivalTime: 16 Aug 2011 07:00:32.0293 (UTC) FILETIME=[30985D50:01CC5BE2] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313478105 news.xs4all.nl 23853 [2001:888:2000:d::a6]:57507 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11514 Hi All, If I get multiline standard output from a command. How can I retrieve this part of the string "(1006)" Example: #Committing... #Workspace: (1003) "My OS_8.12.0 Work" <-> (1004) "OS_8.12.0" # Component: (1005) "he-Group" <-> (1004) "OS_8.12.0" # Outgoing: # Change sets: # (1006) *--@ # Changes: # ---c- /he-Group/o-PI/target/config/common-ngp/makefile