ClickHouse/tests/queries/0_stateless/02374_regexp_replace.sql
2022-07-26 08:01:31 +02:00

2 lines
103 B
SQL

SELECT 'https://www.clickhouse.com/' AS s, REGEXP_REPLACE(s, '^https?://(?:www\.)?([^/]+)/.*$', '\1');