Matthew JSON Replacer

Replace "Matthew 7" in JSON-LD

`; function replaceMatthew() { const chapter = document.getElementById("chapterInput").value.trim(); const resultArea = document.getElementById("resultArea"); if (!chapter || isNaN(chapter)) { resultArea.value = "❌ Please enter a valid chapter number (1–28)."; return; } const updated = originalJson .replaceAll(/Matthew 7/g, `Matthew ${chapter}`) .replaceAll(/Matthew Chapter 7/g, `Matthew Chapter ${chapter}`) .replaceAll(/Matthew chapter 7/g, `Matthew chapter ${chapter}`) .replaceAll(/Chapter 7/g, `Chapter ${chapter}`) .replaceAll(/jw-mt7/g, `jw-mt${chapter}`); resultArea.value = updated.trim(); }