const fs = require('fs');
const content = fs.readFileSync('index.html', 'utf8');
const lines = content.split('\n');
lines.forEach((l, i) => {
    if(l.includes('class="view"') || l.includes('class="view active"')) {
        const idMatch = l.match(/id="([^"]+)"/);
        if(idMatch) console.log(idMatch[1]);
    }
});
