Do you mean
761fc813-0d67-4690-9387-5d5e53141309-image.png
vs
c69dcc71-32c7-4399-8041-cbbd69a7c1b8-image.png
If so, then the checkbox on the right controls that. It tells you this when you hover over that box:
c4c1b4bf-9ec7-4476-ac7f-67c761911e0e-image.png
It’s also documented in the usermanual
(I showed a screenshot on the Find tab of the dialog, but it’s the same on the Find and Replace tab as well)