Regex Search [DEPRECATED]

AnkiWeb addon 2044559350 GitHub repository archived

Enables regex and wildcard field-name searches in Anki's browser and filtered deck dialog, but is deprecated because Anki 2.1.24 natively supports regex.
AI-generated summary; may contain mistakes.

searchfiltered-decksobsolete

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
3 (πŸ‘ 3 Β· πŸ‘Ž 0)
Updated
2020-02-09
Anki versions
<=2.1.23
Description language
en

Maintenance

abandoned

  • The GitHub repository is archived.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.12020-02-08
2.1.102.1.232020-02-09
History across monthly snapshots

Loading…

Similar addons

BetterSearch

Adds browser search filter dialogs for tags, decks, note/card types, dates, flags, and saved searches with configurable shortcuts.

searchfiltered-decksshortcuts

Rating 61 πŸ‘ 58 Β· πŸ‘Ž 3 ⭐ 12 Anki 25.09.2~ Updated 2026-03-03
Browser search result highlighter

Highlights browser search matches inside Anki notes, supports the full search language with auto-scroll, scrollbar indicators, code-view matches, and settings.

search

Rating 17 πŸ‘ 17 Β· πŸ‘Ž 0 ⭐ 5 Anki 24.11~ Updated 2026-06-06

README

Regex Search for Anki 2.1

This is an add-on for Anki version 2.1 that allows you to use regular expression pattern matching to search for cards in the browser and the filtered deck creation dialog. It also provides a feature that allows you to use wildcard pattern matching to specify a field name.

Regex literal

You can use a regex literal as a search term, which consists of a regex pattern enclosed between slashes, as follows:

  • /ab+c/
  • text:/Hello\b.*world/

A regex search is case-sensitive by default. If you want to perform a regex search in a case-insensitive manner, add i flag to the end of a regex literal, as follows:

  • /ab+c/i

Wildcard matching on field names

Optional (Enabled by default)

As an optional feature, you can use wildcard pattern matching to specify a field name. A character * matches zero or more of any character. Field names are handled in a case-insensitive manner.

  • *text*:abc
    • Find notes with a field whose name is Text, text 1, English Text, etc., and which contains a string abc.

This feature can also be used in combination with regex search.

  • *info*:/hello\b.*world/i

This feature can be disabled or the wildcard character can be changed via add-on's config dialog.

  • Go to Tools > Add-ons > Select this add-on > Config

Note

Anki's manual says:

If you want to search for something including a space or parenthesis, enclose it in quotes.

  • "/apple(?!\s*pie)/"
  • "* foo *:abc"

Keep this point in mind, since parentheses are often used in regular expression patterns.

Known issues

This add-on conflicts with Word search and wildcard field name (2.1) add-on.

Installation

https://ankiweb.net/shared/info/2044559350