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

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');