Extract Fragment
D SELECT extract_fragment('http://example.com/page#section') AS fragment;
ββββββββββββ
β fragment β
β varchar β
ββββββββββββ€
β section β
ββββββββββββ
D SELECT extract_fragment('http://example.com/path?q=1#results') AS fragment;
ββββββββββββ
β fragment β
β varchar β
ββββββββββββ€
β results β
ββββββββββββ
D SELECT extract_fragment('http://example.com/#/users/123/profile') AS fragment;
ββββββββββββββββββββββ
β fragment β
β varchar β
ββββββββββββββββββββββ€
β /users/123/profile β
ββββββββββββββββββββββLast updated
Was this helpful?