ClickHouse/dbms/tests/queries/0_stateless/00807_regexp_quote_meta.sql
2018-12-20 22:13:12 +03:00

13 lines
466 B
SQL

SELECT regexpQuoteMeta('hello');
SELECT regexpQuoteMeta('hel\\lo');
SELECT regexpQuoteMeta('h{ell}o');
SELECT regexpQuoteMeta('(h{ell}o)');
SELECT regexpQuoteMeta('');
SELECT regexpQuoteMeta('(');
SELECT regexpQuoteMeta('Hello(');
SELECT regexpQuoteMeta('(Hello');
SELECT regexpQuoteMeta('(((((((((');
SELECT regexpQuoteMeta('\\');
SELECT regexpQuoteMeta('\0\\|()^$.[?*+{');
SELECT DISTINCT regexpQuoteMeta(toString(number)) = toString(number) FROM numbers(100000);