• 36

What will I learn?


This puzzle allows you to master string manipulation once and for all. You can use Regular Expressions (Regex) to find matching patterns.

External resources

Regex 101Regular expression


You have to format an input file to a JSON-like format. You will want to watch out for indentation rules and read the statement carefully, and use regular expressions to find patterns to parse the content in order to decide how to format it.

Solve it

A higher resolution is required to access the IDE


At CodinGame we like to reinvent things. XML, JSON etc. that's great, but for a better web, we've invented our own text data format (called CGX) to represent structured information.

In this puzzle, you'll be asked to write a program capable of indenting blocks of text in accordance to the CGX formatting rules.

Online Participants