implemented regex variable parsing out of file content