# Search for cards with a field that contains a capitalised letter?

**URL:** <https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554>\
**Category:** Help\
**Created:** [January 31, 2024, 8:36am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554 "2024-01-31T08:36:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![huyvanphan](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@huyvanphan](https://forums.ankiweb.net/u/huyvanphan)\
**Post date:** [January 31, 2024, 8:36am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/1 "2024-01-31T08:36:44Z")

</div>

How do I search for all the cards where a specific field contains a capital letter?

For example, I have cards with three fields. Question, Answer, and Extra. I want to search the question field for all the cards which contain a capital letter in that field.

im using anki ver 2.1.22

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [January 31, 2024, 8:51am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/2 "2024-01-31T08:51:17Z")

</div>

Try this [including the “quotes”]:  
`"Question:re:(?-i)[A-Z]"`  
As far as I can tell, that should be limited to that field, and find any letter A-Z case-_sensitive_.  
[https://docs.ankiweb.net/searching.html#regular-expressions](https://docs.ankiweb.net/searching.html#regular-expressions)

---

<div class="post-metadata">

**Author:** ![huyvanphan](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@huyvanphan](https://forums.ankiweb.net/u/huyvanphan)\
**Post date:** [January 31, 2024, 8:55am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/3 "2024-01-31T08:55:50Z")

</div>

I used it as you said but no cards come up in the search. Im using anki ver 2.1.22

---

<div class="post-metadata">

**Author:** ![huyvanphan](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@huyvanphan](https://forums.ankiweb.net/u/huyvanphan)\
**Post date:** [January 31, 2024, 9:10am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/4 "2024-01-31T09:10:21Z")

</div>

> [@Danika\_Dakika](#):
>
> “Question:re:(?-i)[A-Z]”

Thanks it worked after upgrading anki

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [January 31, 2024, 9:19am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/5 "2024-01-31T09:19:01Z")

</div>

That version is almost 4 years old. According to the manual (see link) you can’t use regex, and without regex, you might be out of luck (“Standard searches are case insensitive for Latin characters - a-z will match A-Z, and vice versa.”).

If this is important to you, you should consider updating to a more recent version. Making that big a jump, be sure to read the upgrade notes ([Platform Notes - Anki Manual](https://docs.ankiweb.net/platform/intro.html)), and be mindful of any add-ons that you need your version to be compatible with.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [March 1, 2024, 9:19am UTC](https://forums.ankiweb.net/t/search-for-cards-with-a-field-that-contains-a-capitalised-letter/40554/6 "2024-03-01T09:19:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
