ClickHouse/tests/queries/0_stateless/02374_regexp_replace.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 lines
103 B
MySQL
Raw Normal View History

2022-07-26 05:59:58 +00:00
SELECT 'https://www.clickhouse.com/' AS s, REGEXP_REPLACE(s, '^https?://(?:www\.)?([^/]+)/.*$', '\1');