Regex only exports with name

Modified regex to only match exports with name and got rid of null check
for matches without name, and also matched the name with both 'name:'
and 'name='