Count number of WHERE filters in SQL query using regex – Postgresql
Update: I've updated the test string to cover a case that I've missed. I'm trying to do count the number of WHERE filters in a query using regex. So the general idea is to count the number of WHERE and…