Regexp problem

Beldar beldar.cat at gmail.com
Thu Jul 30 08:40:41 EDT 2009


Hi there!

I have a problem and i'm not very good at regular expressions.
I have a text like "lalala lalala tiruri beldar-is-listening tiruri
lalala" I need a regexp to get the 'beldar' part, the format is
'something-is-listening', i need to get the something part, use it in
my code, and then replace the whole 'something-is-listening' for
another string.

Someone can help me please? Thank you!



More information about the Python-list mailing list