From 4883ce33861e9ec4c94ffc0bfdbe3afd2fe60be6 Mon Sep 17 00:00:00 2001 From: Alexander Marshalov Date: Tue, 2 Dec 2025 18:37:03 +0100 Subject: [PATCH] implement REGEXP_REPLACE function support --- README.md | 2 +- .../web/ui/src/components/docs/Docs.tsx | 2 +- lib/logsql/select.go | 92 +++++++++++++++++++ lib/logsql/select_test.go | 64 +++++++++++++ 4 files changed, 158 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 08d50d7..f80bcf6 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ Supported highlights: - `SELECT` with : - aliases, - arithmetic expressions, - - string helpers (`SUBSTR`, `CONCAT`, `TRIM`, `REPLACE`, `LOWER`, `UPPER`), + - string helpers (`SUBSTR`, `CONCAT`, `TRIM`, `REPLACE`, `LOWER`, `UPPER`, `REGEXP_REPLACE`), - math (`ABS`, `CEIL`, `FLOOR`, `ROUND`, `LEAST`, `GREATEST`), - JSON (`JSON_VALUE`), - `CASE`/`WHEN`, diff --git a/cmd/sql-to-logsql/web/ui/src/components/docs/Docs.tsx b/cmd/sql-to-logsql/web/ui/src/components/docs/Docs.tsx index 227495b..e9d22f8 100644 --- a/cmd/sql-to-logsql/web/ui/src/components/docs/Docs.tsx +++ b/cmd/sql-to-logsql/web/ui/src/components/docs/Docs.tsx @@ -81,7 +81,7 @@ export function Docs() {