ClickHouse/tests/queries/0_stateless/00807_regexp_quote_meta.sql

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

13 lines
466 B
MySQL
Raw Normal View History

2018-12-20 19:13:12 +00:00
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);