The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MatchEndPos


Unit:SDL_stringl
Class: TGrep
Declaration: property TGrep.MatchEndPos: integer;

The readonly property MatchEndPos returns the terminal position of a matched regular expression (as defined by the property RegExp), i.e. it contains the position of the last character of the parameter Instring of the method MatchString which matches the current regular expression. MatchEndPos is set after every call to MatchString.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): grep



Last Update: 2012-Oct-20