select regexp_replace('https://www.facebook.com/cricket/hello', '.*\..*?\/', '')
The above code is giving me
hello
instead of
cricket/hello
I checked on Regexp checking website and the pattern is correct. I am not sure where am I going wrong.
DBMS: "PostgreSQL 8.2.15 (Greenplum Database 4.2.8.3 build 1) on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.4.2 compiled on Nov 2 2014 01:33:14"