Pattern to find maximum available chars

I am trying to find the text (1234) by matching like below, and EPF only finding the minimum said chars.

WaitFor 5, text: <1 to 4 digits>, searchRectangle: myarea --not matching full
WaitFor 5, text: <4 to 1 digits>, searchRectangle: myarea --command error - invalid image

WaitFor 5, text: <1 or 4 digits>, searchRectangle: myarea 
--matching full but if I have 3 chars, it would FAIL I guess

So, How can I make it to match maximum available chars in the specified pattern?
Appreciate any insights or help links? Thanks.

The pattern you want is <1 to 4 digits greedily> as described here: Elements of the SenseTalk Pattern Language | EPF Docs

1 Like

Thanks @SenseTalkDoug . This is exactly what I need.