pos(string,substring)


Description

gives the position of substring in the string position starts with 1 at the left end returns 0 if no match found.

Example

trim(substr(ITT,pos(ITT, 'Source:')+7))
returns a part of the item text after "Source:" tag

++:!I:trim(substr(ITT,pos(ITT,'Comment:')+8)):ITT~='Comment:'

Related Rules

rpos()