Learn regular expressions

How this course works, what the workbench can do, and the chapter list.

This is a regex editor course for the Swiftener Regex editor. You type in that tab, press Ctrl+Enter (or Cmd+Enter), and read the console.

You do not install Python. Code and uploaded files stay in your browser.

Language syntax belongs in Introduction to Python. This course stays on re.

Goal

Finish every chapter by running the copy-paste blocks in the workbench. The last chapter is a kiosk log you can reuse.

How to take the course

  1. Keep this tutorial tab and the Regex editor workbench side by side.
  2. Wait until the workbench status says Python is ready or the library is ready.
  3. Copy an exercise, paste it as the whole editor, run it, then read the printed output. Each shaded block is a complete script — it does not rely on leftover variables.
  4. When a chapter asks for a file, download it from the buttons above, then click Add files in the workbench.

The workbench Snippets menu is a cheat sheet. Prefer the exercises here — they are written for this editor.

What this editor can and cannot do

  • Can: stdlib re, print, text uploads, writes to /uploads, downloads.
  • Cannot: input(), fetching URLs, or installing extra packages.
  • Always print(...) a result. A bare value at the end of the editor is not displayed the way Jupyter would.

Sample files

Download any of these from the banner, then attach them with Add files:

  • kiosk.txt — dated kiosk lines
  • receipts.txt — units and prices in prose
  • phones.txt — Kenya-style phone strings
  • messy.csv — mixed separators

Chapter list

Work in order the first time. After that, jump around from the sidebar.