Using Dotstar · Part 8

Compare

The Compare tab runs the pattern in every engine Dotstar has, on your text, and groups the engines by the matches they find. The flavor you’re in comes first; every other group says how it differs, and from which match.

Compare: \b\w+\b in 24 engines, in four groups by how they read \w.

As written, or converted

  • As written runs the same pattern in each, with the flags each has: which engines read it, and do they agree? This is the view for a pattern that has to work in more than one place, or for finding out what a piece of syntax means elsewhere.
  • Converted converts it to each flavor first, then runs it: does the pattern carry over? What the conversion said about an engine shows with it. (Pro.)

Engines that can’t run the pattern at all, say Go with a backreference, say why. Click an engine’s name to switch to it.

How it runs

Compare runs while its tab is open, a moment after you change something, one engine at a time. The first time, it loads every engine, which takes a little while.

Benchmark

Benchmark… times the pattern, and alternatives to it, in the flavor you’re in: add a pattern B (and C…), choose how many times to repeat the text, and Run. The table says which is fastest, and by how much. A good way to check that a rewrite meant to avoid backtracking is actually faster.