substring(openai_text; indexOf(openai_text; “###TITULO_START###”) + 17; indexOf(openai_text; “###TITULO_END###”) – indexOf(openai_text; “###TITULO_START###”) – 17)

Introdução

substring(openai_text; indexOf(openai_text; “###INTRO_START###”) + 17; indexOf(openai_text; “###INTRO_END###”) – indexOf(openai_text; “###INTRO_START###”) – 17)

replace(replace(trim(corpo_raw); /###\s*(.+?)\s*###/gm; “

$1

“); /(\r?\n){2,}/g; “

“)

Deixe um comentário