I need to port some Perl code to python, and Im not very familiar with Perl..
if (($fieldsParsed==0)&(/\/\/ address,.*/)) {
push (@reservedMemoryArray,$_);
$fieldsParsed = 1;
}
I need help understanding this regexp. what does the /\/\/ address,.*/ mean? and if this regex matches, the next line is pushed into the array, right?
Thanks
\/\/ address,.*./is most probably the delimiter, which is not needed in Python. I can't read Perl code, though, so I don't know what is happening in your code.