https://docs.ankiweb.net/searching.html

Standard searches pattern

perform “contains” action (ASCII case insensitive, e.g. a==A) only on sorted fields (NOTE: multi escaped by using double quotes and backslashes. e.g. \\ \_ \* “and” “or” \( \) (ref https://docs.ankiweb.net/searching.html#matching-special-characters)

  1. _ → single Unicode char
  2. * → multiply chars
  3. p1 [and ]p2
  4. p1 or p2
  5. -pattern → reversed match
  6. (pattern)
  7. w:pattern → word only (re:\wpattern\w) (Unicode case insensitive)

field limited searching

perform “match the whole” action:

  1. field_pattern:pattern
  2. field_pattern:pattern” (if field or pattern contains any space)

e.g.

tag, deck, card, note(→ note type, e.g. basic)

nid, cid

(the following’s ones accept a number whose unit is “days”.

added, edited

introduced First Answered