Work with SQL and Regex