FindText - atleast 2 and preferably more chars of "mytext"

How to find maximum number of chars from mytext. Consider mytext is hard coded or via variable.
Have tried all these options but no luck; all these options are just finding some chars instead of sequence of chars from mytext.

WaitFor: 5, text: <at least 2 and preferably more characters of mytext>, SearchRectangle: my_rect
WaitFor: 5, text: <preferably more characters of mytext>, SearchRectangle: my_rect
WaitFor: 5, text: <2 to 10 characters of mytext greedily>, SearchRectangle: my_rect
WaitFor: 5, text: <more characters of mytext greedily>, SearchRectangle: my_rect
WaitFor: 5, text: <maximum characters of mytext greedily>, SearchRectangle: my_rect

How I can make to find sequence of chars from mytext? Appreciate any inputs.

Because we don’t have access to your SUT, I would recommend that you try the following:

Connect "TutorialSUT"

Put "abcdefghijklmno" into myText

set myPattern to <at least 2 and preferably more characters of mytext>

Put EveryImageLocation(text:myPattern)

set myPatternList to {
	<at least 2 and preferably more characters of mytext>,
	<preferably more characters of mytext>,
	<2 to 10 characters of mytext greedily>,
	<more characters of mytext greedily>,
	<maximum characters of mytext greedily>
}


Repeat with each item myPattern of myPatternList
	Repeat with each item myRectangle of EveryImageRectangle(text:myPattern)
		HighlightRectangle myRectangle, (duration:2)
		Wait 2
	End Repeat
End Repeat

This should give you an idea of how each pattern is behaving.

Thanks Dave. This gave me some idea.
EPF identifies part of mytext along with some other combination as well, but the last rectangle of the found list helped me.