Newbie backreference question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Newbie backreference question

From: paulm <paulm@barley.vel.net>
Date: Thu Jun 30 2005 - 23:12:56 CEST

Hi,
        In perl I can do something like:

$a = 'test string';
$a =~ /test (\w+)/;
$b = $1;
print $b . "\n";

and my output would be "string".

        How might this snippet be written in python?

Thanks to all...
Received on Thu Sep 29 16:40:35 2005