replaceall regex does not produce result for control characters in trino CLI #17673
Closed
natarajank11
started this conversation in
General
Replies: 1 comment
-
SQL varchar literals don't have control characters so your regex will never match. The So you need to change your regex to: BTW since SQL varchar literals don't have any control characters why do you want to "remove control characters" and how do you plan to differentiate between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trino UDF (version 407):
Basically i want to remove control characters from the string.
I tried following regex pattern,
String regex = "[\\\\p{C}]";
Trino result,
select rm_code('hello\bhello\thello'); => hellobhellothello
This ticket is similar to #17474
Beta Was this translation helpful? Give feedback.
All reactions