!7 p { S page = loadPage("https://en.wikipedia.org/wiki/Glossary_of_chemistry_terms?action=raw"); for (S line : lines(page)) { L l = regexpFirstGroups(regexpQuote("*'''[[") + "(.+?)" + regexpQuote("]]'''") + "(.*)", line); if (nempty(l)) { S term = dropStuffBeforeVerticalBar(first(l)), def = second(l); L defs = nempties(splitAt(def, "{{snd}}")); print("Term found: " + quote(term) + " - " + sfu(defs)); } } }