Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-06-13 13:34
Updated·2023-06-13 15:17
Flavor·ECMAScript (JavaScript)

/
^[^]*?`{3}(?:json)?\n(.*[^]*?)\n`{3}[^]*?$
/
i
Open regex in editor

Description

Useful to extract JSON from LLM markdown responses

Submitted by Lamer217