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 - a year ago (Last modified a year ago)