Using Dotstar · Part 1

Getting started

Dotstar is a place to write a regular expression and see what it does, as you write it. There are three ways to get it: the desktop app for the Mac, Windows and Linux, and the web version, which runs in a browser and has the same window.

Dotstar with a pattern for log lines: the matches highlighted in the text, and every part of the pattern explained in the side panel.

The window

  • The pattern is the field at the top, between the slashes. Above it are the flavor (whose engine runs the pattern: JavaScript, PCRE2, Python and others) and that flavor’s flags, which also show after the closing slash.
  • The text is below. Type or paste it, open a file with Open… (⌘O), or drop one on it. Every match is highlighted as you type, each capture group in its own colour.
  • The side panel on the right explains the pattern, lists the matches and more, one tab at a time. The next part starts there.

Above the text, the count says how many matches there are and how long they took, and the arrows step through them; Enter in the pattern field does too (⇧Enter backwards).

As you type

Everything updates as you type, the matches at once and the rest a moment after you pause. A mistake in the pattern is underlined where it is, with a wavy line; something not finished yet, like a group not closed, with a dotted one. A pattern that can take for ever (catastrophic backtracking) is underlined too, with why, and a safer form one click away where there is one; one that runs away anyway is stopped after two seconds, and the app carries on.

Starting over, and going back

  • New (⌘N) starts over with an empty pattern, text and tests, in the same flavor. Undo right after brings it all back.
  • Undo and Redo, beside New, work in the field you last typed in.
  • The clock at the start of the pattern field lists the patterns you tried; ⌥↑ and ⌥↓ step through them.

Nothing you type leaves your computer

Matching, explaining, debugging and searching files all run on your computer, in the app or in the browser: the engines are built into Dotstar. The desktop app asks getdotstar.com only whether there’s a new version, and with Pro whether its license is still good; neither carries anything you typed. Privacy has the details. A shared link keeps the pattern in the part after the #, which browsers don’t send to a server.

Free and Pro

Dotstar Free is a full regex tester in six flavors: JavaScript, PCRE2, Go, Python, .NET and Java. Dotstar Pro adds the other engines, converting between flavors, Files, saving projects and code in every language. The web version is Free.