how to convert this perl expression to Python
while (<FIL>) {
s/[\n\r]+/ /g;
if (/<DOC\s+doc_ID=\"(.*?)\".*sys_ID=\"(.*?)\"/i) { #"
${$$hashptr{$sys_Id}}{$doc_Id} = $docstr; #
push(@$doclistptr, $doc_Id);
$doc_Id = $1;
$sys_Id = $2;
$docstr = "";
$numDocs\+\+;
next;
Any Idea
Jagan