Open gadget2022 opened 1 year ago
This is just a documentation enhancement request
Hello. Could someone improve documentation on this issue? Thank you
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
Thank you for improving docs. Now everybody in our team understand how to work with regular expressions in ksqlDB
Close issue
Unable to escape characters with usual RegExp methods like using backslash, backslash with parentheses, backslash with double quotes, backslash with single quotes or \Q\E.
Tested with \ and * special characters
To Reproduce
create stream TEST as select REGEXP_EXTRACT('\u0000','\u0000 1111-222, 1112-223') as backslash_escaped FROM CONTACTS emit changes; Result: 'u0000'
create stream TEST_2 as select REGEXP_EXTRACT('(backslash here, hidden by editor)\u0000','\u0000 1111-222, 1112-223') as backslash_escaped FROM CONTACTS emit changes; Result: 'u0000'
Expected behavior create stream TEST as select REGEXP_EXTRACT('(backslash here, hidden by editor)\u0000','\u0000 1111-222, 1112-223') as backslash_escaped FROM CONTACTS emit changes; Result: '\u0000'
Or need to improve documentation? Thank you