Clean villagers' text at the hamlet office with regex in JavaScript, Python, PHP and Go. 16 levels, played right in the browser with nothing to install.
What the levels ask
Mrs. Yanti forwards prices from the market's WhatsApp group: four lines, eight prices, each written like 45rb. The price board at the market only reads numbers. Pick the flag for the pattern in rekap.js so every price on every line becomes a full number, like 45000.
Neighbourhood 02's secretary typed the residents' birth dates with dashes, slashes or dots. The village office's OpenSID needs year-month-day, for example 1980-03-25. The pattern already captures the day, the separator, the month and the year. Pick the replacement text for replace.
Mr. Tono brings this week's harvest prices: 6,8rb/kg for unhusked rice, 2,5jt for a goat. The board needs whole rupiah: 6800/kg, 2500000. A plain replacement text cannot do sums, so replace gets a function. Pick what the function returns.
Grandma Marni's grandson typed the health post's list of elderly residents: some all in capitals, some all in small letters. The health post card needs a capital at the start of each word only, and Nur'aini stays Nur'aini. The text is already all lower case; pick the pattern for the letters that go upper case.
Mrs. Sari brings the WhatsApp recap of emping orders for Sekar Arum, the women farmers' group. The office needs a CSV: one row per order, nama,jumlah,barang, and messages that are not orders are left out. Pick the name group and the pattern's flag; every CSV row that comes out is checked against the office's file.
Saturday's orders come in through Mrs. Ijah, and some villagers order several things in one message: 2 emping, 3 keripik pedas. Each item must become a CSV row of its own. Pick the quantifier for the item's name and the outer pattern's flag.
Bagas moved the price pattern from the office's browser into rekap.py for the women farmers' group's monthly report. He copied the replacement text from JavaScript, and Python does not read it the same way. Pick the replacement text for re.sub so the result matches the browser's: 45000.
Another of Bagas's scripts reads the order chat line by line and prints jumlah,barang for each order, but it prints nothing. Pick the re function that finds an order wherever it sits on the line.
Mr. Hanif typed the Qur'an school students' parents on his phone, and the Arabic keyboard was on for one line. The office's page in the browser checks for a 16-digit NIK (the national ID number) and holds that line back for checking, but rekap.py lets it through to the import. Pick the flag for re.fullmatch so Python decides the same as the browser.
Ms. Anis imports Neighbourhood 02's birth dates into the village office's OpenSID, which is written in PHP. The dates now all read like 25-03-1980, and OpenSID needs 1980-03-25. Pick the pattern and the replacement text for preg_replace.
Mr. Piksel runs the market's price board in Go from the internet café, and it has been down since morning. The pattern he copied from the browser console uses a lookahead. Pick the pattern and the replacement text for papan.go so Mrs. Yanti's prices read 45000 again.
Ms. Wulan needs every phone number from the ward group chat, for the office's page, rekap.py, OpenSID and Mr. Piksel's notice board. The pattern is the same in all four languages. Pick how each language asks for every match, so all four print the same four numbers.