Find Text not working correctly with Whole word checked

Using _FindText with “whole word” checked returns unexpected results.

Want the “select all” to return only the search string “.5” but it returns everything but what I was searching for.

It does find the string when “whole word” is unchecked, but it also returns anything with the number 5 in it.

Find text

Highlighted yellow text is the return from clicking “select all”

In find instead use the string \.5 and uncheck Whole word.

In the documentation it is stated that .NET regular expressions ( .NET Regular Expressions - .NET | Microsoft Learn ) are supported. Escaping the dot will make it a regular expression. It means that it finds a literal dot and a 5. If you want to ensure it finds only .5 and not .55 or 5.5 use ^\.5$. ^ means start of the line $ means end of the line.

1 Like