Regex Search [DEPRECATED]

AnkiWeb addon 2044559350 GitHub repository archived

Enables regular expression searches in the browser and filtered deck creation dialog, plus wildcard matching for field names.
AI-generated summary; may contain mistakes.

searchfiltered-decksobsolete

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
3 (πŸ‘ 3 Β· πŸ‘Ž 0)
Updated
2020-02-09
Anki versions
<=2.1.23
License
AGPL-3.0 (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
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 and card types, fields, flags, and saved searches, plus absolute-date filtering and keyboard shortcuts.

searchfiltered-decksshortcuts

61 votes 87% approval πŸ‘ 58 Β· πŸ‘Ž 3 ⭐ 12 Anki 25.09.2~ Updated 2026-03-03
Browser Search By Word Count

Enables searching the Anki browser by word count in a specified field using syntax like wordcount(FieldName) > 14; requires Anki 2.1.24+ and may fail with HTML fields.

search

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 2.1.24~ Updated 2023-10-10

Description

*NOTE* Anki version 2.1.24 will natively support regular expression search. This add-on will therefore be DEPRECATED. This page is left as an archive for now. This add-on 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. See my GitHub repo for all the details.

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