Given :
s = "SELECT * FROM THIS_TABLE WHERE COL='123'"
Return the table name from the sql query which is always between 'FROM ' and ' WHERE'
Regex expression that I've tried returns nothing :
re.search('FROM\s+(.*)\s+WHERE', s.upper())
Expected output :
'THIS_TABLE'