PHP:
$string ='This is the match [more or less]';
preg_match('#\[(.*)\]#', $string, $match);
var_dump($match[1]);
можно также использовать
data=pd.read_excel('demanddata.xlsx',sheet_name='oil&gas')
print(data)
Здесь demanddata, название файла oil& газ является одним из Вашего имени листа.