Python Regex Extract String Using Sql For Data