Problems with regular expressions

Carlos Luis Pérez Alonso CarlosLuis.Perez at
Fri Jun 15 02:42:02 CEST 2007

I have the next piece of code:
        return 0     
        sys.stderr.write("El comentario tiene que contener el taskid:#### o el bugid:####")        
        return 1
The regular exprexión is "^(taskid|bugid):\\d+"
Mi problem is that if logMessage == "taskid:234" the regular expression matched teorically, but the result is always "None" and the function returns 1.
¿Does anybody has an idea of what is happening here?

More information about the Python-list mailing list