Written by Sean Behan on Thu Aug 16th 2018

Postgres doesn't have a basename function per se. But it's easy to accomplish.

select regexp_replace('http://www.seanbehan.com/images/logo.png', '.+/', '') ;
-- Will return logo.png

Tagged with..
#sql #postgres #psql #basename #regex

Just finishing up brewing up some fresh ground comments...