Python Regex Extract String Using Sql In A Clpd