The app’s Help
Dotstar 0.9.18 · the Help in the app, under ? or F1, on one page. For a walk through with pictures, see Using Dotstar.
Converting between flavors, code in every language, Files and saving projects are in Dotstar Pro; everything else is in Free too, and in the web version. See Free and Pro.
Getting started
Type a regular expression in the pattern field at the top and paste some text below it. Every match is highlighted as you type, capture groups in their own colours, and the count and time show above the text, by the arrows that step through the matches.
Dotstar never sends your text anywhere: matching runs on your computer. A pattern that runs away (catastrophic backtracking) is stopped after two seconds.
- Open a file with Open… or ⌘O, or drop it on the text. In the desktop app, File → Open Recent has the last ten, and text files open from the Finder or the file manager with Open With → Dotstar.
- Save Project (⌘S) keeps the whole investigation, pattern, flags, replacement, text and test cases, in a
.dotstarfile. Open it with File → Open Project… (⌥⌘O), Open Recent, from the Finder or the file manager, or with Open… like any other file. The title says when it has unsaved changes. Quitting keeps them: they’re back next time, still marked Edited; opening another project asks whether to save them first. - Enter in the pattern field (⇧Enter backwards) steps through the matches.
- New (⌘N) starts over: an empty pattern, replacement, text and tests, no open file or folder, in the same flavor. Undo right after brings it all back. The Undo and Redo buttons work in the field you last typed in.
- The side panel explains the pattern, lists the matches and more; see “The side panel”.
The pattern
The row above the pattern holds its flavor and that flavor’s flags, which also show after the pattern’s closing slash: g finds every match rather than the first, i ignores case, m makes ^ and $ match at line breaks, s lets . match line breaks too. Each flavor has a few more; hover a flag to see what it does.
- Insert, after the flags (⌘I, or right-click in the pattern), puts tokens in from a menu, so you don’t need to remember the syntax. One that needs something from you, as a number of times, a group’s name or a character’s code, asks for it first, and shows the token and what it means before it goes in.
- Suggestions come up as you write: after
\,(or[(and{for a count), the syntax the flavor has from there, each with what it means, the most used first. ↑ and ↓ choose, Enter or Tab puts one in, Esc closes them. One that needs a value, as a group’s name or a count, goes in with that value selected: type it, and Tab moves on (into the group, say). ⌃Space shows them anywhere, and after a word searches what they mean: write atomic or boundary and press ⌃Space. In the replacement,$or\suggests the pattern’s groups, written the flavor’s way. Settings → General can keep them to ⌃Space only. - The clock at the start of the pattern field lists patterns you tried. ⌥↑ and ⌥↓ in the pattern field step through them.
- Pasting code with a pattern in it, as
/\d+/g,re.compile(r'\d+', re.I),Pattern.compile("\\d+")ornew Regex(@"\d+"), (or a string kept in a variable, asstring pattern = @"\b\w+";) offers the pattern in it, read with that language’s string rules, with its flags. Use it takes it (and the language’s flavor); Keep as pasted leaves the code. Several lines are read one by one, past comments; a pattern in a variable gets the flags it’s used with, as innew Regex(pattern, RegexOptions.IgnoreCase); with several patterns, you choose one. - Pasting several lines puts them on one line, keeping their meaning: in x mode line breaks become spaces (and # comments go), except in a class or
\Q…\E, where they count; otherwise they become\n. - Problems are underlined where they are once you pause typing: a wavy line for mistakes, a dotted one for something not finished yet, like an unclosed group.
- A part that can backtrack catastrophically, like
(a+)+or(\w|\d)+, is underlined too, and a line under the pattern says why and what to do; where a safer form matches the same, one click takes it. Go never backtracks, so it has none.
Flavors
Regular expressions differ between languages. The menu before the flags chooses whose engine runs the pattern, and with it the syntax, the flags and the replacement syntax:
- JavaScript, run by the engine of the system the app runs on (JavaScriptCore on a Mac; in a browser, the browser’s), named in the menu.
- PCRE2, as in PHP, R, nginx and
grep -P. - Go’s regexp (RE2 syntax), which never backtracks and has no lookarounds or backreferences.
- Python’s re module.
- .NET’s Regex, as in C#, F# and PowerShell: balancing groups, class subtraction like
[a-z-[aeiou]], and groups numbered with the named ones last. - Java’s java.util.regex, as in Java, Kotlin and Scala: class intersection like
[a-z&&[^aeiou]], possessive quantifiers, and U for Unicode classes. On macOS 13 and 14 it needs Safari updated to 18.4 or later. - POSIX, as in grep, sed, awk and C’s regcomp (in Dotstar Pro), in two dialects, chosen in the menu beside it: ERE (
grep -E,sed -E) and BRE (grep, sed), where\(\)and\{\}are the operators and(and{plain characters. Run by musl’s regcomp: the leftmost longest match (a|ab finds ab), no lazy quantifiers, lookarounds or non-capturing groups, backreferences in BRE only, and[[:alpha:]]classes, in which a backslash is just a backslash. The m flag isREG_NEWLINE:^and$at line breaks, and.and[^…]never matching one; without it they match line breaks too. Replacements are sed’s:&and\1to\9. - C++’s
std::regex, as libc++ has it (in Dotstar Pro), in its six grammars, chosen in the menu beside it: ECMAScript (the default, JavaScript as it was in 1999: no lookbehind, named groups or s flag), and the strict POSIX ones, basic, extended, awk (with\nand octal escapes), grep and egrep (a line break between alternatives), without GNU’s\wor\b. It reads the text as bytes, as astd::stringholds it: é is two, so.and[^…]can match half of one; the w flag makes itstd::wregexon astd::wstring, a character at a time (its classes and icase still know only ASCII, the C locale’s). Replacements are ECMAScript’s:$&and$1. - Rust’s regex crate, as in Rust and ripgrep (in Dotstar Pro): like Go’s it never backtracks, so it has no lookarounds or backreferences, and its
\d,\wand\bknow every script unless(?-u:…)says ASCII. Classes nest and combine:[[a-z]--[aeiou]]subtracts, && intersects, ~~ keeps what is in one but not both;\<and\>are the start and end of a word. - Lua’s patterns, as
string.find,string.matchandstring.gsubhave them (in Dotstar Pro): not regular expressions but smaller, on purpose. There is no alternation, and only a single character or class repeats:*,+,?and - (the lazy*). Classes are%a,%d,%wand their kind (their capitals the opposites), ASCII and a byte at a time, % escapes, and Lua has two of its own:%b()for a balanced pair, nested ones inside, and%f[%w]for a frontier, where the character before isn’t in the set and the one after is.()captures a position,^and$are anchors only first and last, and replacements are%1to%9,%0for the whole match and%%for a percent sign. Run by Lua 5.4 itself. - Vim’s regular expressions, as
/and:shave them (in Dotstar Pro), run by Vim’s own regexp.c: the text is a buffer, a line at a time, searched and replaced as:%sdoes it, without g the first match in each line. With 'magic', so\(\),\|and\+take a backslash;\vmakes nearly everything magic,\Vnearly nothing. Vim’s own are there:\zsand\zeto set where the match starts and ends,\{-}for lazy,\@=\@!\@<=\@<!and\@>after what they apply to,\&for this and that,\%[abc]for as much as matches,\_sand\_.that take a line break,\%23lfor a line, and\k\i\f\pby 'iskeyword' and its kind (é is a keyword character;\wis ASCII). i is 'ignorecase', and\cand\Cin the pattern win. In the replacement&and\1insert,\uand\Uchange case,\rbreaks the line,~is the previous replacement (none, in a fresh Vim). - Ruby’s Regexp, as Ruby 3.4 has it (in Dotstar Pro), run by Ruby’s own copy of Onigmo: found as
#scanand#gsubfind them, replaced as#gsubreads its replacement (\0or\&,\1,\k<name>,\`and\').^and$always work line by line; m lets.take line breaks too.\d,\wand\sare ASCII ((?u)for every script’s), while\band[[:alpha:]]know every script;\his a hex digit. Ruby’s own:\g<name>to call a group again,(?~abc)for anything without abc,[a-z&&[^aeiou]]for an intersection, and with named groups the plain ones don’t capture. - Perl’s regular expressions (in Dotstar Pro), run by Perl 5.42 itself: compiled as
qr//compiles a pattern given as a string (nothing interpolated,\Q…\Eand\Ubeing for Perl’s strings, not its patterns), found asm//gfinds them and replaced ass///gdoes, the replacement read ass///reads it, a double-quoted string:$1or${1},$+{name},$&,$`and$',\uand\U…\E,\tand\x{e9}. Other$namesand@namesare Perl’s own variables, which have nothing to do with the match: write\$and\@for the characters.\d,\w,\band[[:alpha:]]know every script ((?a)for ASCII’s); the flags are i, m, s, x and n. Perl’s own:\b{wb}and its kind for Unicode’s word, sentence and line boundaries, lookbehinds up to 255 characters long, and groups that share a name. - Swift’s Regex, the standard library’s (in Dotstar Pro), run by Swift 6.4’s own, in WebAssembly: compiled as
Regex(pattern)compiles a pattern given as a string, with the flags as its options (i.ignoresCase(), m.anchorsMatchLineEndings(), s.dotMatchesNewlines(), U.repetitionBehavior(.reluctant), u.matchingSemantics(.unicodeScalar), w.wordBoundaryKind(.simple); x and n inline), found asmatches(of:)finds them and replaced asreplacing(_:with:)does, the replacement text as it is (no$1: for groups, the Code tab writes a closure). It matches whole characters: é written as e and a combining accent is one, and so is\r\n, unless u says Unicode scalars; after an empty match it goes on from the next character.\d,\w,\sand[[:alpha:]]know every script ((?DSW)for ASCII’s),$is the very end (\Zalso before a final line break), and\bis Unicode’s word boundary, which keeps don’t and 3.14 whole and has one at either side of a space (w for the classic\b). Swift’s own:\yfor a boundary between characters,[:digit:]on its own,\N{LATIN SMALL LETTER A}and\p{name=…}, and classes that subtract (--), intersect (&&) and nest. Swift 6.4 doesn’t support lookbehind,\K, conditionals or recursion yet, and says so. Dotstar’s is built from Swift’s own source with two of its optimizations mended, which made a repeated part that can match nothing loop for ever and missed matches ignoring case; Swift on Apple’s systems, whose copy of Regex is older, gets those right too. - Emacs’s regular expressions, as
M-x replace-regexpfinds and replaces them in a buffer (in Dotstar Pro). Emacs* is Dotstar’s own engine, not Emacs’s (whose engine is GNU GPL, which an app like this can’t carry), written from how Emacs behaves and checked against Emacs 31 on hundreds of thousands of random patterns, texts and replacements; what it knows about characters (their syntax, classes, case and scripts) it was told by Emacs itself. In the desktop app downloaded from getdotstar.com, an Emacs installed on the computer runs the flavor instead (Settings → Emacs flavor).\(\),\|and\{\}take a backslash and(|{are characters;*+?are characters at the start,^an anchor only there and$only at the end.\wand\sC(\s-whitespace,\s.punctuation,\s_symbol) go by the syntax table, so é, Ω and 漢 are word characters and_isn’t;\cCis a category (\clLatin),\_<and\_>a symbol’s start and end,\`and\'the text’s. i is case-fold-search, which Emacs turns off when the pattern has a capital, and then the replacement follows the match’s case (FOO gets BAR). Replacements are replace-match’s:\&the match,\1to\9,\\a backslash. Matching an empty string, Emacs never takes one where the last match ended, nor at the very end. - Google’s RE2 (in Dotstar Pro), run by RE2 itself (the C++ library, 2025-11-05): what Google Sheets’
REGEXMATCHandREGEXREPLACE, BigQuery, Cloud Logging and much of Google run. Its syntax is Go’s (Go’s regexp is a port by RE2’s author): it never backtracks, so matching takes time in proportion to the text, and it has no lookarounds or backreferences. Matches are found asGlobalReplacefinds them, and replaced as its Rewrite reads the replacement:\0the whole match,\1to\9a group,\\a backslash, and nothing else after one (with \n on,\n,\tand the like too). The flags are its options: i (case), s (.takes line breaks), m and U as(?m)and(?U), and l, the leftmost longest match, as POSIX takes it. RE2 runs on bytes of UTF-8, so\Bcan match inside a character past ASCII; the conversion notes say so. - ICU’s regular expressions (in Dotstar Pro), run by ICU itself (ICU4C 78, the C++ library): what NSRegularExpression runs on Apple’s systems, and MySQL 8’s
REGEXP, LibreOffice’s find and replace and R’s stringi. Its syntax is Java’s, with differences of its own: it knows every script throughout (\d,\w,\s,\band case),\Xis a grapheme cluster,\N{…}a character by its Unicode name,\Uwith eight hex digits a code point,(?#…)a comment, and an escape before a letter it doesn’t know is the letter itself; it repeats no anchor but^and$, no lookaround and no(?i). The flags are NSRegularExpression’s options: i, m, s, x, w (Unicode’s word boundaries, UAX #29: “don’t” is one word) and d (only\nends a line). Replacements asappendReplacementreads them:$1,${name}, and\before a character takes it as it is. A match that backtracks without end is stopped. Dictionary word breaks (Chinese, Japanese, Thai) aren’t in the data Dotstar carries, so\bwith w treats those runs as ICU without its dictionaries does. - VBScript*, under Legacy at the end of the menu (in Dotstar Pro): VBScript.RegExp, “Microsoft VBScript Regular Expressions 5.5”, which VB6, VBA (Excel, Access and Word macros) and VBScript use, found and replaced as
ExecuteandReplacedo. It is Dotstar’s own engine, not Microsoft’s (see VBScript*, below). Its syntax is JavaScript’s of about 1999: lookahead, lazy repetition and backreferences, but no lookbehind, named groups,\p{…}or modes; it reads it in its own ways too: a]right after[or[^is a character, so[]a]is]oraand[^]is never complete;{1}disappears, soa{1}*isa*;\12after one group is\1and a 2, and\1before any group is octal; any other letter after a backslash is the letter..is anything but\n(a\rtoo),\sis ASCII’s spaces alone, and a repetition keeps what a group took in an earlier round. The flags are its properties: gGlobal, iIgnoreCase(by VBScript’s own table, from about Unicode 2.0), mMultiLine. The replacement is JavaScript’s, with .NET’s$+(the last group) and$_(the whole text). The Code tab writes it for VBA and VB6, and for VBScript. - Pomsky, a regular expression language written to be read (in Dotstar Pro), compiled by Pomsky’s own compiler to a regex for the engine chosen in the menu beside it (PCRE2, JavaScript, Java, .NET, Python, Ruby, Rust or RE2), which then runs in Dotstar’s engine for it. Text is quoted (
'hello'), whitespace and line breaks mean nothing, and#starts a comment;[word],[digit],['a'-'z']are classes,:name(…)a named group,::namea reference to it,%a word boundary,StartandEndthe ends of the text,>>and<<lookahead and lookbehind,let x = …;a variable, andrange '0'-'255'the numbers 0 to 255, written out as a regex for you. Repetition is*,+,?and{2,4}, greedy unlesslazyfollows (orenable lazy;is said). Pomsky’s errors show on the pattern; the Explain tab shows the regex it compiles to, explained, and Copy takes it. The flags are the engine’s, for the regex Pomsky makes; for JavaScript, u is always on, as Pomsky writes for it. Pomsky is converted out of, to any flavor, from the regex it makes; not into, since it is a language of its own. See pomsky-lang.org.
Each is the real engine, not an imitation, but two: Emacs* is Dotstar’s own engine for Emacs’s regular expressions, not GNU Emacs, and VBScript* its own for VBScript.RegExp, not Microsoft’s (see each, below). Switching flavor offers the pattern converted to the new one: Convert takes it, Keep as is leaves it. It converts from the flavor the pattern was written for, so after Keep as is the next switch still starts from there; and a pattern only the new flavor reads, such as Python’s (?P<name>…) typed in JavaScript, is taken as written for it, with nothing to convert. The notes say what doesn’t carry over (in red) or behaves differently (in grey); then Dotstar looks for a short text the two engines find otherwise in, trying strings the pattern matches with what tells engines apart (letters past ASCII, other scripts’ digits, odd spaces and line breaks), and your text’s lines, and shows the shortest: Add to the text puts it there, to see. Library patterns are converted to the flavor you’re in when you load them.
The JavaScript engine
The JavaScript flavor runs the engine Dotstar runs in. In the desktop app it’s the system’s web engine: JavaScriptCore on a Mac (as in Safari) and on Linux, V8 on Windows; Chrome, Edge and Node use V8 too (and Firefox V8’s regex engine). They agree almost everywhere, but not on everything, and a shared link says which one made it.
They differ most on a pattern that backtracks heavily, like (a+)+b on a long run of a’s: JavaScriptCore gives up after about half a second and reports no match, without an error. When that may have happened, Dotstar says so under the pattern and the count reads “or more”; Files marks such files too.
To be sure, make the pattern backtrack less (no nested quantifiers like (a+)+, anchors where you can), or try it in PCRE2, which says when it reaches its limit. Check the JavaScript Engine, below or in the Help menu, shows where this engine departs from the specification.
Emacs*: not GNU Emacs
The Emacs flavor is called Emacs* (or, among friends, .Emacs*: Dotstar’s .* with an Emacs inside) because it isn’t run by GNU Emacs. Emacs’s regex engine is under the GNU GPL, which an app sold in the App Store can’t carry, so Emacs* is Dotstar’s own engine: written from how Emacs behaves, without any of Emacs’s code, and checked against GNU Emacs 31 on hundreds of thousands of random patterns, texts and replacements, which must give the same errors, matches and replaced text. What it knows about characters (their syntax, classes, case and scripts) comes from Unicode’s data, as Emacs has it.
It can still be wrong where those checks didn’t reach: when the exact answer matters, check it in Emacs. In the desktop app downloaded from getdotstar.com, GNU Emacs itself can run the flavor, if it is installed (brew install emacs on a Mac, GNU’s installer, Scoop or Chocolatey on Windows, the package manager’s on Linux): Settings → Emacs flavor. The status line then says “Emacs 31.1” (or whichever version), and the line under the pattern that it is GNU Emacs. Bought in the App Store, or installed from Flathub, Dotstar always runs Emacs*, even with an Emacs installed: both keep their apps from starting other programs. The .deb, .rpm and AppImage from getdotstar.com can run it.
Dotstar isn’t affiliated with the Free Software Foundation or the GNU Emacs project. GNU is a trademark of the Free Software Foundation.
VBScript*: not Microsoft’s
The VBScript flavor is called VBScript* because it isn’t run by VBScript. VBScript.RegExp is part of Windows (vbscript.dll), closed and Windows only, and Windows is retiring VBScript, so VBScript* is Dotstar’s own engine: written from how VBScript.RegExp behaves, without any of its code, and checked against it on Windows on tens of thousands of random patterns, texts and replacements, which must give the same errors, matches, groups and replaced text. Its case table was asked of VBScript.RegExp itself.
It can still be wrong where those checks didn’t reach: when the exact answer matters, check it in VBScript. A pattern that VBScript.RegExp itself would backtrack on for ever, VBScript* stops and says so.
Replace
Find | Replace, at the end of the row above the pattern, switches to replacing: a replacement field shows, and the text with every match replaced shows below the test text, with the replacements marked. Copy takes the whole result.
The replacement uses the flavor’s own syntax: $1 and $<name> in JavaScript, $1 and ${name} in PCRE2 and Go, \1 and \g<name> in Python, $1 and ${name} in .NET and Java (where \$ is a dollar sign). The \n at the end of the replacement field reads \n, \t and similar escapes as the characters they name (Python always does). The Explain tab explains the replacement too.
The side panel
- Explain: every part of the pattern in plain English. Hover a row to see its part of the pattern, click to select it, drag rows to move parts around (⌥ to copy), and fold branches with the arrows. Diagram, at its top, draws the pattern as a railroad diagram instead: read the tracks from left to right; where they split, any one of them will do, a loop back under a part repeats it (dashed when lazy), a track around a part may skip it, and a frame is a group or a lookaround. Point at a part to see it in the pattern and what it means, click to select it. A long pattern goes on in rows to fit; − and + zoom it (so do ⌘ or Ctrl and the wheel), and Open larger shows it over the app, where Save as SVG… makes an image file of it.
- Matches: each match with its groups, as details, whole lines, only the matches, or a table of groups. Each view can be copied, and Collect… writes the matches out as a list of their own (see Collecting matches).
- Tests: strings the pattern should and shouldn’t match, marked pass or fail as you edit. ⋯ beside one that should match asks more of it: that the match be the whole string, or exactly some text, that a group hold a value, or that replacing in it give this (with Replace on); hover a string to see what passed or what didn’t. They are saved with the pattern in the library, projects and links.
- Debug: steps through a match, showing where the engine is in the pattern and the text, when it backtracks, and which parts take the most steps. JavaScript only for now.
- Library: checked, ready-made patterns, and your own (Save current…). In the desktop app your own are kept in a file in the app’s data folder (on a Mac, in Application Support: library.json, in the same format as an export); in a browser, in its storage. Export and Import move them between computers.
- Code: ready-to-paste code that uses the pattern in 24 languages: JavaScript, TypeScript, Dart, Python, PHP, Perl, Ruby, Java, Kotlin, C#, F#, Visual Basic, PowerShell, Go, Rust, Swift, C++, C (regcomp), Lua, Vim script, Emacs Lisp, the shell (grep and sed), VBA and VB6, and VBScript. The languages that run the flavor’s own engine come first; for the others the pattern is converted, with notes on anything that changes. Where Dotstar has the language’s engine (Python, PHP, Perl, Ruby, Java and Kotlin, the .NET languages, Go, Rust, Swift, C, C++, Lua, Vim script, Emacs Lisp, VBA and VBScript), the converted pattern is also run there on your text, which says whether it finds the same matches, or where they differ. Unit tests writes the Tests tab’s strings as tests in the language’s usual framework (Vitest or Jest, pytest, PHPUnit, JUnit, xUnit, Go’s testing, Rust’s #[test], XCTest, Minitest, Test::More, Pester, ERT and the like, or plain asserts in C, C++ and Lua, Debug.Assert in VBA), around the same code Test writes.
- Chain: steps after the pattern, each run on what the one before made. The first is the pattern itself: its replacement when Replace is on, otherwise the text as it is. A replace step keeps the text it doesn’t match; an extract step keeps only the matches, each written from its template on a line of its own (
$1,$<name>,$&for the whole match). Each step has its own pattern and flags, in the flavor you’re in, shows how many matches it had, and can be turned off or moved up and down. Copy takes the output at the end, and Use as text makes it the text. The steps are saved in the session, projects, the library and links. - Compare: the pattern in every engine at once, the engines grouped by the matches they find, the flavor you’re in first, so you see at a glance where they disagree, and from which match. As written runs the same pattern in each (with the flags each has): which engines read it, and alike? Converted converts it to each first (Pro): does it carry over? What the conversion said about an engine shows with it. Engines that can’t run it say why. Click an engine’s name to switch to it. It runs while the tab is open, a moment after a change, one engine at a time; the first time loads every engine, which takes a little while.
Drag the line between the text and the side panel to resize it. The › at the end of its tabs (or ⌘\) folds it into a narrow strip of icons; click one to open the panel on that tab. The button next to it moves the panel below the text or back beside it (also in Settings); beside, it has the whole right side, with the pattern above the text on the left. In a narrow panel the tabs show icons; hover one for its name. Then ☰ at their start opens a menu of every tab by name and the panel’s two buttons, and what doesn’t fit in the row is left to it (the tab that’s open always stays).
Files (GREP)
In the desktop app, Files searches every file in a folder with the pattern: choose a folder, and click a hit to open that file as the test text. Binary and very large files are skipped, and so are the file types listed in Settings (.exe, .zip, images and the like).
- The filter says which files:
*.txt*.mdsearches only those, src/ only within that folder, and ! leaves things out:!*.csv, !old/. Empty means every file. - Dependency, version control and build folders (node_modules,
.gitand so on) are left out while listing the folder; “Search them too” takes them in. Settings holds the list. - Reload lists the folder and reads its files again, after they changed; Close lets go of it. In Files, ⌘O opens a folder too, and in the desktop app File → Open Folder… (⇧⌘O) does from anywhere; folders show in Open Recent.
With Replace on, each hit shows the match struck out and what replaces it, and Replace in files… changes every matching file, after you confirm. It keeps a copy of each first, in a hidden .dotstar-backups folder in the folder you searched (one folder per replacement, never searched itself), so Undo replace can put them all back, as long as they haven’t changed since; Show backups shows them in the Finder or the file manager.
In Files the side panel has only Explain and Library: the other tabs are about the text and test strings, and come back with Text.
The web version doesn’t search folders: a browser can only reach a folder by “uploading” it.
Collecting matches
Collect… gathers the matches into a list of their own, one a line, to copy or save as a file: in the Matches tab for the text, and in Files for every file searched. Say a folder of logs has failed downloads with an ID each: download (\d+) failed and the template $1 give every failed ID.
- The template says what each line is:
$1or$<name>for a group (numbered as the flavor numbers them),$&for the whole match,$$for a dollar sign, and\tfor a tab, so$1\t$2makes columns. It’s the same in every flavor. Empty means the whole match. - Duplicates: Keep all, Remove duplicate lines (the first of lines that are alike is kept), or One per a group (One per “id”, say: the first match for each ID), so an ID retried ten times is there once. The count says how many matches gave how many lines.
- Sorted puts the lines in order (numbers as numbers). File name and Line number put where each match is in front of it, as grep does:
logs/a.log:12:4711. - Copy takes the whole list, and Save as… makes a file of it (in a browser, a download). The preview shows the first 1,000 lines.
Settings
Settings are opened from the menu in the desktop app, Dotstar → Settings… on a Mac and Edit → Settings… on Windows and Linux (⌘, either way), and from the gear in the top bar on the web. They hold the few things you set once, in tabs: General has the theme, the text size and whether the side panel sits beside the text or below it; Flavors what switching flavor does to the pattern (offer it converted, convert it at once, or leave it) and, in the downloaded desktop app with an Emacs installed, who runs the Emacs flavor; Files which folders and file types Files leaves out (one per line); and Pro the license: activating a key, and deactivating it on this computer, which asks first. Settings opens on the tab you were last on.
Keyboard shortcuts
| F1 | This help |
| ⌘, | Settings, in the desktop app |
| ⌘I | Insert token menu (or right-click in the pattern) |
| ⌃Space | Suggestions at the cursor, in the pattern and the replacement; after a word, search them |
| Enter ⇧Enter | Next and previous match, in the pattern field |
| ⌘G ⇧⌘G | Next and previous match, anywhere (F3 and ⇧F3 too) |
| ⌥↑ ⌥↓ | Older and newer patterns from the history, in the pattern field |
| ⌘N | New: start over, in the same flavor |
| ⌘O | Open a file as the test text, or a project; in Files, a folder to search |
| ⌥⌘O | Open a project |
| ⇧⌘O | Open a folder to search, in Files |
| ⌘S ⇧⌘S | Save the project, or save it as a new file |
| ⌘\ | Fold or unfold the side panel |
| ⌘Z ⇧⌘Z | Undo and redo, in each field (also loads and conversions); outside the fields, in the one last typed in, or New |
| ← → | Previous and next tab, with a tab focused; previous and next step in the debugger |
| Esc | Close a menu or dialog |