Help file:
You can select a range of text in an editbox using /did -c name id [n] [start [end]]. This selects line N in editbox, and sets selection to specified range of characters.
So, you get the line number with $didwm(); from this, you can get the line content; then you use $pos(line content,search string) to determine the <start> parameter in /did -c; $calc($pos(line content,search string) + $len(search string)) is your <end> parameter.