AnkiWeb
- Rating
- 5 (π 5 Β· π 0)
- Updated
- 2020-09-04
- Anki versions
- <=2.1.44
- Description language
- en
AnkiWeb addon 1725433474
Find and replace Anki tags via regular expressions with backreferencing, live preview, and search history, for Anki 2.1.28β2.1.44 before native support.
Open on AnkiWeb GitHub Forum topic Ask about alternatives
abandoned
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.28 | 2.1.44 | 2020-09-04 |
Loadingβ¦
Compares notes for duplicates by grouping them via deck, note type, tags, or browser selection, using field matches, manual conditions, and regular expressions, then deletes, suspends, tags, or replaces fields.
Enhances the browser with improved multi-selection, tag-level columns, card states, history, localization, and card info tools.
Applies configured plain-text and regex replacements, via a shortcut, to the HTML source of the currently active editor field in one note.
Turns tags into regular Anki decks, restores cards to original decks, registers return addresses, and creates native filtered decks from selected tags.
Automatically bolds target vocabulary in Anki sentence fields using morphology-aware matching, with deck/note targeting, preview, browser integration, custom readings, and optional whitespace stripping.
Builds guided Anki filtered decks from topic tags and source decks, plus recovery, time-based sessions, context, notes, resume, debrief, and cleanup tools.
Find and Replace Tags in Anki using Regular Expressions.
This add-on supports Anki 2.1.28 to 2.1.44. Starting with version 2.1.45, RegEx replacing for tags is possible with vanilla Anki.

You can download the add-on via Ankiweb or build it from Github.
In the browser, select the notes whose tags you want to edit. Then, choose βFind and Replace Tags (RegEx)β in the βNotesβ menu or use the shortcut Ctrl+Alt+Shift+R to open the Find and Replace dialog. Here you can type in the search and replacement patterns, toggle case sensitivity and enter arbitrary tags to preview how they would be changed. You will be able to confirm the Dialog only while both RegEx fields contain compilable patterns. When editing has completed, a brief summary is shown and you have the option to clear unused tags to reflect the changes in the browser's tag list.
Tags are Anki's straightforward way to organise notes independently of the deck structure. When editing them you should be aware that they are space-seperated and case-insensitive. So βfoo barβ is a list of two tags and βFooβ is the same tag as βfooβ. With tags you can browse your collection, create custom studies and keep track of certain notes without splitting your collection into subdecks (which is advised against). To make best use of them, one of Anki's most popular add-ons allows you to have hierarchical tags.
RegEx are a powerful tool in analysing and manipulating text-based data. If you have never heard of them before, you might want to check out one of the many excellent resources on the internet to learn about them. But while every decent word processor supports their usage, the syntax often differs slightly. You can find a Python-specific introduction here (note, though, that it covers far more than you need to know to make use of this add-on).
I appreciate bug reports and feedback on Github or the Anki forum. Feel free to ask for help there as well.
Copyright Β© 2020 RumovZ
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.