searchString()

public int searchString(String str)

This method returns the position in the presentation space of the specified string. This method returns 0 if the string is not found in the presentation space.

Figure 1. Example for searchString()
<varupdate name="$pos_ofIBM$" value="$HMLPSUtil.searchString('IBM')$" />