/help $didwm

$didwm(name,id,wildtext,[n])
Returns the number of the line that matches wildtext, with the search starting at line N (optional).