0

I know there's similar question, but in my case the solution didn't work since there's no valid delimiter.

I have a string inside a column:

{"module-version": "2.0", "more-details-link": ""}, "has-cve": true, "issue-package": "VM-Essentials", "legacy-scan-status": "removed"}

I need the inside of issue-package. I tried: REGEXP_EXTRACT(details_issues.issue_raw,r'\"issue-package=(.+?)\,')

But i'm getting Null inside the column. Any suggestions?

1 Answer 1

1

If this is a JSON string, you should use JSON_* functions instead.

You can try something like:

JSON_EXTRACT(details_issues.issue_raw, '$.issue-package')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.