regular expression question
bignose-hates-spam at and-benfinney-does-too.id.au
Wed Jan 21 01:30:50 CET 2004
On Wed, 21 Jan 2004 00:38:12 -0000, Steve Lamb wrote:
> import re
> line = 'match this'
> foo = re.search(r'.*(this)', line)
>>> import re
>>> line = 'match this'
>>> foo = re.search( r'.*(this)', line )
Read more on the methods available from a MatchObject:
\ "The man who is denied the opportunity of taking decisions of |
`\ importance begins to regard as important the decisions he is |
_o__) allowed to take." -- C. Northcote Parkinson |
Ben Finney <http://bignose.squidly.org/>
More information about the Python-list