Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11514

regular expression

Subject regular expression
Date 2011-08-16 02:00 -0500
References <BB13E4C4D649234F84A01F6DF64BB87F076AD0CE@ccs-ex01.coldstorage.com> <4E499F0B.30900@stoneleaf.us>
From "Danny Wong (dannwong)" <dannwong@cisco.com>
Newsgroups comp.lang.python
Message-ID <mailman.38.1313478105.27778.python-list@python.org> (permalink)

Show all headers | View raw


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)  *--@  <No comment>
#          Changes:
#            ---c- /he-Group/o-PI/target/config/common-ngp/makefile

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

regular expression "Danny Wong (dannwong)" <dannwong@cisco.com> - 2011-08-16 02:00 -0500

csiph-web