using regular expression in python to read from string in specific format :     str="RegName1,Regname2,0x00000000,0x100000"

I want to use a regular expression to get this values

I try this but it doesn't work.

    re.match(str,'\s+,\s+,\d+,\d+')

Note: I want to ignore comments like "//", "#" and etc..

