# Bug: Find and Replace dialog displays length of longest string in dropdown list

**URL:** <https://forums.ankiweb.net/t/bug-find-and-replace-dialog-displays-length-of-longest-string-in-dropdown-list/2469>\
**Category:** Help\
**Created:** [August 20, 2020, 12:51am UTC](https://forums.ankiweb.net/t/bug-find-and-replace-dialog-displays-length-of-longest-string-in-dropdown-list/2469 "2020-08-20T00:51:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amazeum](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@amazeum](https://forums.ankiweb.net/u/amazeum)\
**Post date:** [August 20, 2020, 12:51am UTC](https://forums.ankiweb.net/t/bug-find-and-replace-dialog-displays-length-of-longest-string-in-dropdown-list/2469/1 "2020-08-20T00:51:08Z")

</div>

I recently started playing with the Find and Replace feature from 2.1.24 and used a long string to clean up a bunch of cards. The feature is great! The bug is just that the application saved this string and now causes my dialog window to extend past the Anki window and actually past my own laptop screen in order to fit it (used an external monitor to take the screenshot). Add-ons were disabled and Anki version is 2.1.30.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/0643eded781000d68537d7b2fd66807fd50f4988.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/9/952da4f735c1fb62a5a550677cd5ae45a7bb4b37.png)

On a less related note, Anki did not like me using quotes in my string even though Python Regex websites seem to not mind. Why is that? I used [^a-zA-Z0-9\<\>-] instead and that worked well enough for me I’m just curious. 🙃

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [August 20, 2020, 5:30am UTC](https://forums.ankiweb.net/t/bug-find-and-replace-dialog-displays-length-of-longest-string-in-dropdown-list/2469/2 "2020-08-20T05:30:43Z")

</div>

Thanks for the report, the sizing issue will be fixed in the next build. Quotes work for me in regex mode, maybe you were using single instead of double or vice versa?

---

<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:** [May 1, 2023, 5:35am UTC](https://forums.ankiweb.net/t/bug-find-and-replace-dialog-displays-length-of-longest-string-in-dropdown-list/2469/3 "2023-05-01T05:35:17Z")

</div>


