[Tutor] Regexp result

Helge Aksdal python at aksdal.net
Wed Jan 21 16:32:07 EST 2004


Hi,

Is there anyway that i can put regexp results into strings?
In Perl i use qr for that operation:

[...]
qr '(\w\w\w)\s(\d+?)\s(\d\d:\d\d:\d\d)',
q  '($month, $day, $time) = ($1, $2, $3)',
[...]

Hope this was clear enough.

-- 
Helge Aksdal



More information about the Tutor mailing list