Extract a substring without using regexes – PostgreSQL
This is based on a question previously asked which was deleted by the OP but it got me thinking and playing round with it, and I managed to do it without using a regex. The question is also a lesson…