79468888

Date: 2025-02-26 07:50:05
Score: 1
Natty:
Report link

To extract the value associated with 'val2' from the JSON-like string in your column1, you can utilize amazon Redshift's REGEXP_SUBSTR function.

SELECT
  column1,
  REGEXP_SUBSTR(column1, '''val2'':\s*''([^'']*)''', 1, 1, 'e') AS extracted_val2
FROM
  your_table_name;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sagar Panchal