ClickHouse/tests/queries/0_stateless/02374_regexp_replace.sql
2022-12-13 12:48:14 +01:00

2 lines
103 B
SQL

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