Code
JS reload file content
<a class="close" href="javascript:read()">load file</a>
<script>
function read()
{
var txtFile = new XMLHttpRequest();
txtFile.open("GET", "http://orga.rasal.de/db.yaml", true);
txtFile.onreadystatechange = function()
{
if (txtFile.readyState === 4)
{
if (txtFile.status === 200)
{
document.getElementById("div").innerHTML = txtFile.responseText;
}
}
}
txtFile.send(null)
}
</script>
RegEx
get everything between [ and ]: [([0-9A-z)]+)]