rpos(string,substring)


Description

Same as pos() but substring may be a regular expression gives the position of substring in the search string position starts with 1 at the left end returns 0 if no match found.

Example

rpos(ITT,'\([A-Z]:\\\.+?\)')

trim(left(ITT,rpos(ITT,'\([A-Z]:\\\.+?\)')-1))

Related Rules

pos()