regular expression

Danny Wong (dannwong) dannwong at cisco.com
Tue Aug 16 03:00:22 EDT 2011


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





More information about the Python-list mailing list