Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

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

Description

Useful to extract JSON from LLM markdown responses

Submitted by Lamer217 - 2 years ago (Last modified 2 years ago)